Definition at line 17 of file SessionHandler.php.
◆ __construct()
SimpleSAML\SessionHandler::__construct |
( |
| ) |
|
|
protected |
◆ getCookieParams()
SimpleSAML\SessionHandler::getCookieParams |
( |
| ) |
|
◆ getCookieSessionId()
SimpleSAML\SessionHandler::getCookieSessionId |
( |
| ) |
|
|
abstract |
Retrieve the session ID saved in the session cookie, if there's one.
- Returns
- string|null The session id saved in the cookie or null if no session cookie was set.
◆ getSessionCookieName()
SimpleSAML\SessionHandler::getSessionCookieName |
( |
| ) |
|
|
abstract |
Retrieve the session cookie name.
- Returns
- string The session cookie name.
◆ getSessionHandler()
static SimpleSAML\SessionHandler::getSessionHandler |
( |
| ) |
|
|
static |
◆ hasSessionCookie()
SimpleSAML\SessionHandler::hasSessionCookie |
( |
| ) |
|
|
abstract |
Check whether the session cookie is set.
This function will only return false if is is certain that the cookie isn't set.
- Returns
- bool True if it was set, false if not.
◆ loadSession()
SimpleSAML\SessionHandler::loadSession |
( |
|
$sessionId = null | ) |
|
|
abstract |
Load the session.
- Parameters
-
string | null | $sessionId | The ID of the session we should load, or null to use the default. |
- Returns
- |null The session object, or null if it doesn't exist.
◆ newSessionId()
SimpleSAML\SessionHandler::newSessionId |
( |
| ) |
|
|
abstract |
Create a new session id.
- Returns
- string The new session id.
◆ saveSession()
Save the session.
- Parameters
-
\SimpleSAML_Session | $session | The session object we should save. |
◆ setCookie()
SimpleSAML\SessionHandler::setCookie |
( |
|
$sessionName, |
|
|
|
$sessionID, |
|
|
array |
$cookieParams = null |
|
) |
| |
|
abstract |
Set a session cookie.
- Parameters
-
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. |
- Exceptions
-
◆ $sessionHandler
SimpleSAML\SessionHandler::$sessionHandler = null |
|
staticprotected |
The documentation for this class was generated from the following file: