Definition at line 17 of file SessionHandler.php.
◆ __construct()
SimpleSAML\SessionHandler::__construct |
( |
| ) |
|
|
protected |
◆ getCookieParams()
SimpleSAML\SessionHandler::getCookieParams |
( |
| ) |
|
Get the cookie parameters that should be used for session cookies.
- Returns
- array An array with the cookie parameters. http://www.php.net/manual/en/function.session-get-cookie-params.php
Definition at line 151 of file SessionHandler.php.
References $config, array, and SimpleSAML_Configuration\getInstance().
156 'lifetime' =>
$config->getInteger(
'session.cookie.lifetime', 0),
157 'path' =>
$config->getString(
'session.cookie.path',
'/'),
158 'domain' =>
$config->getString(
'session.cookie.domain', null),
159 'secure' =>
$config->getBoolean(
'session.cookie.secure',
false),
Create styles array
The data for the language used.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
◆ 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 |
( |
| ) |
|
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.
Definition at line 139 of file SessionHandler.php.
◆ 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: