SessionHandler
PHP Manual

SessionHandler::write

(PHP 5 >= 5.4.0)

SessionHandler::writeThe write purpose

Description

public int SessionHandler::write ( string $sessionid , string $sessiondata )

Writes the session data to the session storage. Called by session_write_close(), when session_register_shutdown() fails, and during request shutdown.

Parameters

sessionid

The session id.

val

The (session_encode()d) session data.

Return Values

The return value of the session storage (usually 0 on success, 1 on failure).


SessionHandler
PHP Manual