Skip to content

Commit

Permalink
Revert "Add Session::abort_save() to Kohana."
Browse files Browse the repository at this point in the history
Obsoleted by upstream fix.

This reverts commit 06f0661.
  • Loading branch information
bharat committed Jul 1, 2009
1 parent 0b34ec4 commit 666c807
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions modules/gallery/controllers/file_proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
13 changes: 0 additions & 13 deletions system/libraries/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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
4 changes: 0 additions & 4 deletions system/libraries/drivers/Session/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ public function read($id)

public function write($id, $data)
{
if (!Session::$should_save) {
return true;
}

$data = array
(
'session_id' => $id,
Expand Down

0 comments on commit 666c807

Please sign in to comment.