28 protected static $sessionHandler = null;
40 if (self::$sessionHandler === null) {
41 self::createSessionHandler();
44 return self::$sessionHandler;
63 abstract public function newSessionId();
71 abstract public function getCookieSessionId();
79 abstract public function getSessionCookieName();
97 abstract public function loadSession($sessionId = null);
109 abstract public function setCookie($sessionName,
$sessionID,
array $cookieParams = null);
120 private static function createSessionHandler()
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),
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
hasSessionCookie()
Check whether the session cookie is set.
Attribute-related utility methods.
Create styles array
The data for the language used.
static getSessionHandler()
This function retrieves the current instance of the session handler.
static getInstance()
Retrieve our singleton instance.
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.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.