We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14fb409 commit 1ec0032Copy full SHA for 1ec0032
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