I have simplesaml setup in my project. I am using sql type session. Everything seems working fine. Assertions are being captured and users are able to login. But my problem is users get auto logged out every 90 seconds. This is stored in simplesaml_saml_LogoutStore table and is captured from assertion. I talked with my idp provider and they said that 90 seconds is for the validity of assertion and cannot be increased because it can cause session hijacking issue. He also said I need to implement/configure session on my end after user gets authenticated through idp. Is there any way I can store my own session and increase auto logout duration? Please suggest.
config.php:
---------
$config['store.type'] = 'sql';
$config['session.cookie.secure'] = true;
$config['enable.authmemcookie'] = false;
$config['session.cookie.name'] = 'PHPSESSID';
-Pradip
public function isValid($authority)
{
assert('is_string($authority)');
if (!isset($this->authData[$authority])) {
SimpleSAML_Logger::debug(
'Session: '.var_export($authority, true).
' not valid because we are not authenticated.'
);
return false;
}
if ($this->authData[$authority]['Expire'] <= time()) {
SimpleSAML_Logger::debug('Session: '.var_export($authority, true).' not valid because it is expired.');
return false;
}
SimpleSAML_Logger::debug('Session: Valid session found with '.var_export($authority, true).'.');
return true;
}