Skip to content

Commit

Permalink
clearing the session on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Feb 17, 2010
1 parent 6c78a9f commit 562acb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infinitas/management/controllers/users_controller.php
Expand Up @@ -116,6 +116,7 @@ function _createCookie(){
* @access public
*/
function logout(){
$this->Session->destroy();
$this->redirect($this->Auth->logout());
}

Expand Down Expand Up @@ -167,6 +168,7 @@ function admin_login(){
}

function admin_logout(){
$this->Session->destroy();
$this->redirect($this->Auth->logout());
}

Expand Down

0 comments on commit 562acb5

Please sign in to comment.