ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
hasSessionCookie () | |
Check whether the session cookie is set. More... | |
setCookie ($sessionName, $sessionID, array $cookieParams=null) | |
Set a session cookie. More... | |
Public Member Functions inherited from SimpleSAML\SessionHandler | |
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... | |
setCookie ($sessionName, $sessionID, array $cookieParams=null) | |
Set a session cookie. More... | |
hasSessionCookie () | |
Check whether the session cookie is set. More... | |
getCookieParams () | |
Get the cookie parameters that should be used for session cookies. More... | |
Protected Member Functions | |
__construct () | |
This constructor initializes the session id based on what we receive in a cookie. More... | |
Protected Member Functions inherited from SimpleSAML\SessionHandler | |
__construct () | |
This constructor is included in case it is needed in the future. More... | |
Protected Attributes | |
$cookie_name | |
Static Private Member Functions | |
static | createSessionID () |
This static function creates a session id. More... | |
static | isValidSessionID ($session_id) |
This static function validates a session id. More... | |
Private Attributes | |
$session_id = null | |
Additional Inherited Members | |
Static Public Member Functions inherited from SimpleSAML\SessionHandler | |
static | getSessionHandler () |
This function retrieves the current instance of the session handler. More... | |
Static Protected Attributes inherited from SimpleSAML\SessionHandler | |
static | $sessionHandler = null |
Definition at line 19 of file SessionHandlerCookie.php.
|
protected |
This constructor initializes the session id based on what we receive in a cookie.
We create a new session id and set a cookie with this id if we don't have a session id.
Definition at line 42 of file SessionHandlerCookie.php.
References $config, and SimpleSAML_Configuration\getInstance().
|
staticprivate |
This static function creates a session id.
A session id consists of 32 random hexadecimal characters.
Definition at line 106 of file SessionHandlerCookie.php.
SimpleSAML\SessionHandlerCookie::getCookieSessionId | ( | ) |
Retrieve the session ID saved in the session cookie, if there's one.
Definition at line 71 of file SessionHandlerCookie.php.
References $_COOKIE.
SimpleSAML\SessionHandlerCookie::getSessionCookieName | ( | ) |
Retrieve the session cookie name.
Definition at line 95 of file SessionHandlerCookie.php.
SimpleSAML\SessionHandlerCookie::hasSessionCookie | ( | ) |
Check whether the session cookie is set.
This function will only return false if is is certain that the cookie isn't set.
Definition at line 145 of file SessionHandlerCookie.php.
References $_COOKIE.
|
staticprivate |
This static function validates a session id.
A session id is valid if it only consists of characters which are allowed in a session id and it is the correct length.
string | $session_id | The session ID we should validate. |
Definition at line 120 of file SessionHandlerCookie.php.
SimpleSAML\SessionHandlerCookie::newSessionId | ( | ) |
Create a new session id.
Definition at line 57 of file SessionHandlerCookie.php.
References SimpleSAML_Session\createSession().
SimpleSAML\SessionHandlerCookie::setCookie | ( | $sessionName, | |
$sessionID, | |||
array | $cookieParams = null |
||
) |
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. |
Definition at line 160 of file SessionHandlerCookie.php.
References $params, and $sessionID.
|
protected |
Definition at line 35 of file SessionHandlerCookie.php.
|
private |
Definition at line 27 of file SessionHandlerCookie.php.