summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Session/drivers/Session_redis_driver.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php
index c4483e439..dc4328644 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -198,7 +198,9 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
$session_data = $this->_redis->get($this->_key_prefix.$session_id);
- is_string($session_data) && $this->_key_exists = TRUE;
+ is_string($session_data)
+ ? $this->_key_exists = TRUE
+ : $session_data = '';
$this->_fingerprint = md5($session_data);
return $session_data;