SessionHandler::read

(PHP 5 >= 5.4.0, PHP 7) Read session data public string SessionHandler::read ( string $session_id ) Reads the session data from the session storage, and returns the result back to PHP for internal processing. This method is called automatically by PHP when a session is started (either automatically or explicity with session_start() and is preceeded by an internal call to the SessionHandler::open(). This method wraps the

SessionHandler::open

(PHP 5 >= 5.4.0, PHP 7) Initialize session public bool SessionHandler::open ( string $save_path, string $session_name ) Create new session, or re-initialize existing session. Called internally by PHP when a session starts either automatically or when session_start() is invoked. This method wraps the internal PHP save handler defined in the session.save_handler ini setting that was set before this handler was set by sess

SessionHandler::gc

(PHP 5 >= 5.4.0, PHP 7) Cleanup old sessions public bool SessionHandler::gc ( int $maxlifetime ) Cleans up expired sessions. Called randomly by PHP internally when a session starts or when session_start() is invoked. The frequency this is called is based on the session.gc_divisor and session.gc_probability configuration directives. This method wraps the internal PHP save handler defined in the session.save_handler ini s

SessionHandler::destroy

(PHP 5 >= 5.4.0, PHP 7) Destroy a session public bool SessionHandler::destroy ( string $session_id ) Destroys a session. Called internally by PHP with session_regenerate_id() (assuming the $destroy is set to TRUE, by session_destroy() or when session_decode() fails. This method wraps the internal PHP save handler defined in the session.save_handler ini setting that was set before this handler was set by session_set_save

SessionHandler::create_sid

(PHP 5 >= 5.5.1, PHP 7) Return a new session ID public string SessionHandler::create_sid ( void ) Generates and returns a new session ID. Returns: A session ID valid for the default session handler. See also: session_id() -

SessionHandler::close

(PHP 5 >= 5.4.0, PHP 7) Close the session public bool SessionHandler::close ( void ) Closes the current session. This method is automatically executed internally by PHP when closing the session, or explicitly via session_write_close() (which first calls the SessionHandler::write()). This method wraps the internal PHP save handler defined in the session.save_handler ini setting that was set before this handler was activa

session_write_close

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Write session data and end session void session_write_close ( void ) End the current session and store session data. Session data is usually stored after your script terminated without the need to call session_write_close(), but as session data is locked to prevent concurrent writes only one script may operate on a session at any time. When using framesets together with sessions you will

session_unset

(PHP 4, PHP 5, PHP 7) Free all session variables void session_unset ( void ) The session_unset() function frees all session variables currently registered. Returns: No value is returned. Notes: If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister a session variable, i.e. unset ($_SESSION['varname']);.

session_unregister

(PHP 4, PHP 5 < 5.4.0) Unregister a global variable from the current session bool session_unregister ( string $name ) session_unregister() unregisters the global variable named name from the current session. Parameters: name The variable name. Returns: Returns TRUE on success or FALSE on failure. This funct

session_status

(PHP >=5.4.0) Returns the current session status int session_status ( void ) session_status() is used to return the current session status. Returns: PHP_SESSION_DISABLED if sessions are disabled. PHP_SESSION_NONE if sessions are enabled, but none exists. PHP_SESSION_ACTIVE if sessions are enabled, and one exists. See also: session_start() -