diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-30 20:48:16 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-30 20:48:16 -0700 |
commit | 4e46a6edf69208dc1e6f3d7fac0421a0c07988df (patch) | |
tree | 14a0df9fda7749dd01fcc18f9b937e29d0666565 /system/libraries/Session.php | |
parent | 666c807fccf4f360fac667e9a7ab6b7e560b3a6c (diff) |
Updated Kohana to r4434
Diffstat (limited to 'system/libraries/Session.php')
-rw-r--r-- | system/libraries/Session.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php index e03f5dff..670ee6a6 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -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 |