From 666c807fccf4f360fac667e9a7ab6b7e560b3a6c Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 30 Jun 2009 20:47:51 -0700 Subject: Revert "Add Session::abort_save() to Kohana." Obsoleted by upstream fix. This reverts commit 06f066164f60fe0babbc7a480e6319a0702e0c46. --- modules/gallery/controllers/file_proxy.php | 3 --- system/libraries/Session.php | 13 ------------- system/libraries/drivers/Session/Database.php | 4 ---- 3 files changed, 20 deletions(-) diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php index 0d64bcd9..1f885e53 100644 --- a/modules/gallery/controllers/file_proxy.php +++ b/modules/gallery/controllers/file_proxy.php @@ -112,9 +112,6 @@ class File_Proxy_Controller extends Controller { kohana::show_404(); } - // We don't need to save the session for this request - Session::abort_save(); - // Dump out the image header("Content-Type: $item->mime_type"); Kohana::close_buffers(false); diff --git a/system/libraries/Session.php b/system/libraries/Session.php index 61a0d403..e03f5dff 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -27,9 +27,6 @@ class Session_Core { // Input library protected $input; - // Automatically save the session by default - public static $should_save = true; - /** * Singleton instance of Session. */ @@ -458,14 +455,4 @@ class Session_Core { } } - /** - * Do not save this session. - * - * @return void - */ - public function abort_save() { - Session::$should_save = false; - - } - } // End Session Class diff --git a/system/libraries/drivers/Session/Database.php b/system/libraries/drivers/Session/Database.php index b8993a9e..b4144ffb 100644 --- a/system/libraries/drivers/Session/Database.php +++ b/system/libraries/drivers/Session/Database.php @@ -98,10 +98,6 @@ class Session_Database_Driver implements Session_Driver { public function write($id, $data) { - if (!Session::$should_save) { - return true; - } - $data = array ( 'session_id' => $id, -- cgit v1.2.3