28 protected static $sessionHandler =
null;
40 if (self::$sessionHandler ===
null) {
41 self::createSessionHandler();
44 return self::$sessionHandler;
130 private static function createSessionHandler()
153 'lifetime' =>
$config->getInteger(
'session.cookie.lifetime', 0),
154 'path' =>
$config->getString(
'session.cookie.path',
'/'),
155 'domain' =>
$config->getString(
'session.cookie.domain',
null),
156 'secure' =>
$config->getBoolean(
'session.cookie.secure',
false),
An exception for terminatinating execution or to throw for unit testing.
getCookieSessionId()
Retrieve the session ID saved in the session cookie, if there's one.
static getSessionHandler()
This function retrieves the current instance of the session handler.
getSessionCookieName()
Retrieve the session cookie name.
getCookieParams()
Get the cookie parameters that should be used for session cookies.
__construct()
This constructor is included in case it is needed in the future.
loadSession($sessionId=null)
Load the session.
hasSessionCookie()
Check whether the session cookie is set.
setCookie($sessionName, $sessionID, array $cookieParams=null)
Set a session cookie.
saveSession(\SimpleSAML_Session $session)
Save the session.
newSessionId()
Create a new session id.
static getInstance()
Retrieve our singleton instance.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
Attribute-related utility methods.