Permalink
Browse files

Revert "Add Session::abort_save() to Kohana."

Obsoleted by upstream fix.

This reverts commit 06f0661.
  • Loading branch information...
bharat committed Jul 1, 2009
1 parent 0b34ec4 commit 666c807fccf4f360fac667e9a7ab6b7e560b3a6c
@@ -112,9 +112,6 @@ public function __call($function, $args) {
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);
@@ -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 @@ public function delete($keys)
}
}
- /**
- * Do not save this session.
- *
- * @return void
- */
- public function abort_save() {
- Session::$should_save = false;
-
- }
-
} // End Session Class
@@ -98,10 +98,6 @@ public function read($id)
public function write($id, $data)
{
- if (!Session::$should_save) {
- return true;
- }
-
$data = array
(
'session_id' => $id,

0 comments on commit 666c807

Please sign in to comment.