Skip to content

Commit

Permalink
Fixed Issue #28: cookie is not emptied after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
taiwen committed Apr 15, 2013
1 parent 71a702e commit bfa19a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/module/system/src/Controller/Front/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ protected function renderForm($form, $message = '')
public function logoutAction()
{
//$this->view()->assign('title', __('Logout'));
//Pi::service('session')->manager()->destroy();
Pi::service('session')->manager()->getStorage()->clear();
Pi::service('session')->manager()->destroy();
//Pi::service('session')->manager()->getStorage()->clear();
$this->jump(array('route' => 'home'), __('You logged out successfully. Now go back to homepage.'));
}

Expand Down

0 comments on commit bfa19a5

Please sign in to comment.