From f0b633334416ecb86de0356a06932fcf78efbfb7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 21 Dec 2008 03:50:11 +0000 Subject: Add a logging facility, and instrument login/logout to use it. --- modules/user/controllers/logout.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/user/controllers/logout.php') diff --git a/modules/user/controllers/logout.php b/modules/user/controllers/logout.php index 19a8450b..60f9ee50 100644 --- a/modules/user/controllers/logout.php +++ b/modules/user/controllers/logout.php @@ -19,12 +19,7 @@ */ class Logout_Controller extends Controller { public function index() { - try { - Session::instance()->destroy(); - module::event("user_logout", $user); - } catch (Exception $e) { - Kohana::log("error", $e); - } + user::logout(); if ($this->input->get("continue")) { url::redirect($this->input->get("continue")); } -- cgit v1.2.3