ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
newSessionId () | |
Create a new session id. More... | |
getCookieSessionId () | |
Retrieve the session ID saved in the session cookie, if there's one. More... | |
getSessionCookieName () | |
Retrieve the session cookie name. More... | |
saveSession (\SimpleSAML_Session $session) | |
Save the session. More... | |
loadSession ($sessionId=null) | |
Load the session. More... | |
hasSessionCookie () | |
Check whether the session cookie is set. More... | |
setCookie ($sessionName, $sessionID, array $cookieParams=null) | |
Set a session cookie. More... | |
getCookieParams () | |
Get the cookie parameters that should be used for session cookies. More... | |
Static Public Member Functions | |
static | getSessionHandler () |
This function retrieves the current instance of the session handler. More... | |
Protected Member Functions | |
__construct () | |
This constructor is included in case it is needed in the future. More... | |
Static Protected Attributes | |
static | $sessionHandler = null |
Definition at line 17 of file SessionHandler.php.
|
protected |
This constructor is included in case it is needed in the future.
Including it now allows us to write parent::__construct() in the subclasses of this class.
Reimplemented in SimpleSAML\SessionHandlerCookie, and SimpleSAML\SessionHandlerPHP.
Definition at line 53 of file SessionHandler.php.
SimpleSAML\SessionHandler::getCookieParams | ( | ) |
Get the cookie parameters that should be used for session cookies.
Reimplemented in SimpleSAML\SessionHandlerPHP.
Definition at line 148 of file SessionHandler.php.
References $config, and SimpleSAML_Configuration\getInstance().
|
abstract |
Retrieve the session ID saved in the session cookie, if there's one.
Reimplemented in SimpleSAML\SessionHandlerCookie, and SimpleSAML\SessionHandlerPHP.
|
abstract |
Retrieve the session cookie name.
Reimplemented in SimpleSAML\SessionHandlerCookie, and SimpleSAML\SessionHandlerPHP.
|
static |
This function retrieves the current instance of the session handler.
The session handler will be instantiated if this is the first call to this function.
Definition at line 38 of file SessionHandler.php.
Referenced by SimpleSAML_Session\__construct(), SimpleSAML_Session\cleanup(), SimpleSAML_Session\doLogin(), SimpleSAML_Session\getSession(), SimpleSAML_Session\hasSessionCookie(), sspmod_core_Auth_Process_ExtendIdPSession\process(), SimpleSAML_Session\save(), and SimpleSAML_Session\updateSessionCookies().
|
abstract |
Check whether the session cookie is set.
This function will only return false if is is certain that the cookie isn't set.
Reimplemented in SimpleSAML\SessionHandlerCookie, and SimpleSAML\SessionHandlerPHP.
|
abstract |
Load the session.
string | null | $sessionId | The ID of the session we should load, or null to use the default. |
Reimplemented in SimpleSAML\SessionHandlerPHP, and SimpleSAML\SessionHandlerStore.
|
abstract |
Create a new session id.
Reimplemented in SimpleSAML\SessionHandlerCookie, and SimpleSAML\SessionHandlerPHP.
|
abstract |
Save the session.
\SimpleSAML_Session | $session | The session object we should save. |
Reimplemented in SimpleSAML\SessionHandlerPHP, and SimpleSAML\SessionHandlerStore.
|
abstract |
Set a session cookie.
string | $sessionName | The name of the session. |
string | null | $sessionID | The session ID to use. Set to null to delete the cookie. |
array | null | $cookieParams | Additional parameters to use for the session cookie. |
SimpleSAML\Error\CannotSetCookie If we can't set the cookie.
Reimplemented in SimpleSAML\SessionHandlerCookie, and SimpleSAML\SessionHandlerPHP.
|
staticprotected |
Definition at line 28 of file SessionHandler.php.