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

AuthMemCookie: Delete the session cookie when deleting the session.

Update issue 219
Status: Fixed
This patch implements deletion of the AuthMemCookie session cookie when
logging out.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1834 44740490-163a-0410-bde0-09ae8108e29a
parent bf73503e
No related branches found
No related tags found
No related merge requests found
...@@ -149,9 +149,11 @@ class SimpleSAML_AuthMemCookie { ...@@ -149,9 +149,11 @@ class SimpleSAML_AuthMemCookie {
$sessionID = $_COOKIE[$cookieName]; $sessionID = $_COOKIE[$cookieName];
/* Delete the session from memcache. */ /* Delete the session from memcache. */
$memcache = $this->getMemcache(); $memcache = $this->getMemcache();
$memcache->delete($sessionID); $memcache->delete($sessionID);
/* Delete the session cookie. */
setcookie($cookieName, '', 1, '/', NULL, SimpleSAML_Utilities::isHTTPS(), TRUE);
} }
......
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