30 parent::__construct();
45 assert(is_string($sessionId) || $sessionId === null);
47 if ($sessionId === null) {
48 $sessionId = $this->getCookieSessionId();
49 if ($sessionId === null) {
55 $session = $this->store->get(
'session', $sessionId);
75 $sessionDuration =
$config->getInteger(
'session.duration', 8 * 60 * 60);
76 $expire = time() + $sessionDuration;
78 $this->store->set(
'session', $sessionId, $session,
$expire);
getSessionId()
Retrieve the session ID of this session.
saveSession(\SimpleSAML_Session $session)
Save a session to the data store.
__construct(Store $store)
Initialize the session.
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
Attribute-related utility methods.
loadSession($sessionId=null)
Load a session from the data store.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.