summaryrefslogtreecommitdiff
path: root/system/libraries/Session.php
diff options
context:
space:
mode:
authorRomain LE DISEZ <romain.git@ledisez.net>2009-07-16 17:31:20 +0200
committerRomain LE DISEZ <romain.git@ledisez.net>2009-07-16 17:31:20 +0200
commit7f5030ac208c30a7dc576a57cd9e665022ccbde5 (patch)
tree6b23e78aa8cc2dd363def46e083217e3c9b52f1b /system/libraries/Session.php
parent923732ca4dca6db218f6252a7133cd72f98fa086 (diff)
parent85b0f580291e375a2c5ec21b8210e59023ee24c2 (diff)
Merge commit 'upstream/master'
Diffstat (limited to 'system/libraries/Session.php')
-rw-r--r--system/libraries/Session.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index 61a0d403..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,8 +27,8 @@ class Session_Core {
// Input library
protected $input;
- // Automatically save the session by default
- public static $should_save = true;
+ // Automatically save the session by default
+ public static $should_save = true;
/**
* Singleton instance of Session.
@@ -458,14 +458,16 @@ class Session_Core {
}
}
- /**
- * Do not save this session.
- *
- * @return void
- */
- public function abort_save() {
- Session::$should_save = false;
-
- }
+ /**
+ * 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