summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery/controllers/file_proxy.php3
-rw-r--r--system/libraries/Session.php13
-rw-r--r--system/libraries/drivers/Session/Database.php4
3 files changed, 0 insertions, 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,