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... | |
hasSessionCookie () | |
Check whether the session cookie is set. More... | |
setCookie ($sessionName, $sessionID, array $cookieParams=null) | |
Set a session cookie. More... | |
![]() | |
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... | |
Protected Member Functions | |
__construct () | |
This constructor initializes the session id based on what we receive in a cookie. More... | |
__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 | getSessionHandler () |
This function retrieves the current instance of the session handler. More... | |
![]() | |
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.
Reimplemented from SimpleSAML\SessionHandler.
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.
Reimplemented from SimpleSAML\SessionHandler.
Definition at line 71 of file SessionHandlerCookie.php.
References $_COOKIE.
SimpleSAML\SessionHandlerCookie::getSessionCookieName | ( | ) |
Retrieve the session cookie name.
Reimplemented from SimpleSAML\SessionHandler.
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.
Reimplemented from SimpleSAML\SessionHandler.
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.
Reimplemented from SimpleSAML\SessionHandler.
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. |
SimpleSAML\Error\CannotSetCookie If we can't set the cookie.
Reimplemented from SimpleSAML\SessionHandler.
Definition at line 160 of file SessionHandlerCookie.php.
References PHPMailer\PHPMailer\$params, and $sessionID.
|
protected |
Definition at line 35 of file SessionHandlerCookie.php.
|
private |
Definition at line 27 of file SessionHandlerCookie.php.