diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-15 09:05:21 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-15 09:05:21 +0000 |
commit | c152e5db5add87a572bf78fe3d64c8562bf7e790 (patch) | |
tree | aa8bb436c4ce3ccd8aca2a492c36084c23281676 | |
parent | 5486238d8d631710471c5170fb1f12c31a9ed19e (diff) |
Only remove the user from the session when logging out.
-rw-r--r-- | modules/user/controllers/logout.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/controllers/logout.php b/modules/user/controllers/logout.php index 524c79f8..ba9b83c7 100644 --- a/modules/user/controllers/logout.php +++ b/modules/user/controllers/logout.php @@ -20,7 +20,7 @@ class Logout_Controller extends Controller { public function index() { try { - Session::instance()->destroy(); + Session::instance()->delete("user"); } catch (Exception $e) { Kohana::log("error", $e); } |