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);
107 abstract public function hasSessionCookie();
119 abstract public function setCookie($sessionName,
$sessionID, array $cookieParams = null);
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),
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
Attribute-related utility methods.
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.