Skip to content
Snippets Groups Projects
Commit 25ab0a28 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Cleanup

parent b681f822
No related branches found
No related tags found
No related merge requests found
......@@ -275,18 +275,12 @@ class sspmod_consent_Consent_Store_Cookie extends sspmod_consent_Store
$globalConfig = SimpleSAML_Configuration::getInstance();
$params = array(
'lifetime' => (90*24*60*60),
'lifetime' => 7776000, // (90*24*60*60)
'path' => ($globalConfig->getBasePath()),
'httponly' => false,
'httponly' => true,
'secure' => \SimpleSAML\Utils\HTTP::isHTTPS(),
);
if (\SimpleSAML\Utils\HTTP::isHTTPS()) {
// Enable secure cookie for https-requests
$params['secure'] = true;
} else {
$params['secure'] = false;
}
\SimpleSAML\Utils\HTTP::setCookie($name, $value, $params, false);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment