mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-12 18:17:42 -04:00
Updated Kohana to r4434
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Session library.
|
||||
*
|
||||
* $Id: Session.php 4073 2009-03-13 17:53:58Z Shadowhand $
|
||||
* $Id: Session.php 4433 2009-07-01 03:44:20Z kiall $
|
||||
*
|
||||
* @package Core
|
||||
* @author Kohana Team
|
||||
@@ -27,6 +27,9 @@ class Session_Core {
|
||||
// Input library
|
||||
protected $input;
|
||||
|
||||
// Automatically save the session by default
|
||||
public static $should_save = true;
|
||||
|
||||
/**
|
||||
* Singleton instance of Session.
|
||||
*/
|
||||
@@ -455,4 +458,16 @@ class Session_Core {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Do not save this session.
|
||||
* This is a performance feature only, if using the native
|
||||
* session "driver" the save will NOT be aborted.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function abort_save()
|
||||
{
|
||||
Session::$should_save = FALSE;
|
||||
}
|
||||
|
||||
} // End Session Class
|
||||
|
||||
Reference in New Issue
Block a user