Skip to content
Snippets Groups Projects
Commit 5e0cebf0 authored by Andjelko Horvat's avatar Andjelko Horvat
Browse files

SimpleSAML_SessionHandlerCookie: set cookie only when session_id is updated...

SimpleSAML_SessionHandlerCookie: set cookie only when session_id is updated (like PHP session_start does).

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2889 44740490-163a-0410-bde0-09ae8108e29a
parent 6491e66c
No related branches found
No related tags found
No related merge requests found
...@@ -55,9 +55,8 @@ extends SimpleSAML_SessionHandler { ...@@ -55,9 +55,8 @@ extends SimpleSAML_SessionHandler {
if(!self::isValidSessionID($this->session_id)) { if(!self::isValidSessionID($this->session_id)) {
/* We don't have a valid session. Create a new session id. */ /* We don't have a valid session. Create a new session id. */
$this->session_id = self::createSessionID(); $this->session_id = self::createSessionID();
$this->setCookie($this->cookie_name, $this->session_id);
} }
$this->setCookie($this->cookie_name, $this->session_id);
} }
return $this->session_id; return $this->session_id;
......
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