Skip to content
Snippets Groups Projects
Commit b1584502 authored by Olav Morken's avatar Olav Morken
Browse files

SessionHandlerStore: Use session ID from session when saving session.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2496 44740490-163a-0410-bde0-09ae8108e29a
parent 55f8e2b6
No related branches found
No related tags found
No related merge requests found
...@@ -67,11 +67,13 @@ class SimpleSAML_SessionHandlerStore extends SimpleSAML_SessionHandlerCookie { ...@@ -67,11 +67,13 @@ class SimpleSAML_SessionHandlerStore extends SimpleSAML_SessionHandlerCookie {
*/ */
public function saveSession(SimpleSAML_Session $session) { public function saveSession(SimpleSAML_Session $session) {
$sessionId = $session->getSessionId();
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
$sessionDuration = $config->getInteger('session.duration', 8*60*60); $sessionDuration = $config->getInteger('session.duration', 8*60*60);
$expire = time() + $sessionDuration; $expire = time() + $sessionDuration;
$this->store->set('session', $this->session_id, $session, $expire); $this->store->set('session', $sessionId, $session, $expire);
} }
} }
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