Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Fix session destruction on logout (refs #3721)
Browse files Browse the repository at this point in the history
Now clearing the whole session, instead of only some basic vars
  • Loading branch information
lazyfrosch committed Feb 20, 2013
1 parent 480898c commit 57bfa5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/modules/AppKit/lib/auth/AppKitSecurityUser.class.php
Expand Up @@ -169,6 +169,9 @@ public function doLogout() {
$this->clearCredentials();
$this->setAuthenticated(false);

// destroy the session with all settings
session_destroy();

$this->getContext()->getLoggerManager()
->log(sprintf('User %s (%s) logged out!', $this->getAttribute('userobj')->user_name, $this->getAttribute('userobj')->givenName()), AgaviLogger::INFO);

Expand Down

0 comments on commit 57bfa5d

Please sign in to comment.