summaryrefslogtreecommitdiff
path: root/system/libraries/drivers/Session/Cache.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/drivers/Session/Cache.php
parent923732ca4dca6db218f6252a7133cd72f98fa086 (diff)
parent85b0f580291e375a2c5ec21b8210e59023ee24c2 (diff)
Merge commit 'upstream/master'
Diffstat (limited to 'system/libraries/drivers/Session/Cache.php')
-rw-r--r--system/libraries/drivers/Session/Cache.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/drivers/Session/Cache.php b/system/libraries/drivers/Session/Cache.php
index 7221c9f2..45e49495 100644
--- a/system/libraries/drivers/Session/Cache.php
+++ b/system/libraries/drivers/Session/Cache.php
@@ -10,7 +10,7 @@
* Lifetime does not need to be set as it is
* overridden by the session expiration setting.
*
- * $Id: Cache.php 3769 2008-12-15 00:48:56Z zombor $
+ * $Id: Cache.php 4431 2009-07-01 03:41:41Z kiall $
*
* @package Core
* @author Kohana Team
@@ -76,6 +76,9 @@ class Session_Cache_Driver implements Session_Driver {
public function write($id, $data)
{
+ if ( ! Session::$should_save)
+ return TRUE;
+
$id = 'session_'.$id;
$data = Kohana::config('session.encryption') ? $this->encrypt->encode($data) : $data;