We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14fb409 + 1ec0032 commit 61b3abbCopy full SHA for 61b3abb
1 file changed
lib/SimpleSAML/Session.php
@@ -585,6 +585,12 @@ public function doLogout($authority = NULL) {
585
586
/* Delete data which expires on logout. */
587
$this->expireDataLogout();
588
+
589
+ /* Delete cookies on logout. */
590
+ $sessionHandler = SimpleSAML_SessionHandler::getSessionHandler();
591
+ $globalConfig = SimpleSAML_Configuration::getInstance();
592
+ $sessionHandler->setCookie($sessionHandler->getSessionCookieName(), NULL);
593
+ $sessionHandler->setCookie($globalConfig->getString('session.authtoken.cookiename', 'SimpleSAMLAuthToken'), NULL);
594
}
595
596
0 commit comments