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/drivers/Session/Cookie.php | |
parent | 666c807fccf4f360fac667e9a7ab6b7e560b3a6c (diff) |
Updated Kohana to r4434
Diffstat (limited to 'system/libraries/drivers/Session/Cookie.php')
-rw-r--r-- | system/libraries/drivers/Session/Cookie.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/drivers/Session/Cookie.php b/system/libraries/drivers/Session/Cookie.php index 7b791064..4cf18fc2 100644 --- a/system/libraries/drivers/Session/Cookie.php +++ b/system/libraries/drivers/Session/Cookie.php @@ -2,7 +2,7 @@ /** * Session cookie driver. * - * $Id: Cookie.php 3769 2008-12-15 00:48:56Z zombor $ + * $Id: Cookie.php 4431 2009-07-01 03:41:41Z kiall $ * * @package Core * @author Kohana Team @@ -48,6 +48,9 @@ class Session_Cookie_Driver implements Session_Driver { public function write($id, $data) { + if ( ! Session::$should_save) + return TRUE; + $data = empty($this->encrypt) ? base64_encode($data) : $this->encrypt->encode($data); if (strlen($data) > 4048) |