summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorJonty Sewell <jontysewell@gmail.com>2016-02-05 10:27:47 +0100
committerJonty Sewell <jontysewell@gmail.com>2016-02-05 10:27:47 +0100
commit880036d5cea0021258c43c0d0fba0e6fd9d04b69 (patch)
treeca3a7178d9278ae2ec9def06c33eed7d159511cf /system/libraries
parent4dc17cf59142b3d3d80e9b3cdba77e7db0d2b75c (diff)
Revert previous changes - fixing the source of the problem rather than working around it
Signed-off-by: Jonty Sewell <jontysewell@gmail.com>
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Session/drivers/Session_redis_driver.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php
index aa8459bef..c7c574202 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -240,15 +240,9 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
return $this->_failure;
}
- if($this->_fingerprint === md5(''))
- {
- // A blank session will not be written to redis, so a timeout cannot be set on it
- return $this->_success;
- } else {
- return ($this->_redis->setTimeout($this->_key_prefix.$session_id, $this->_config['expiration']))
- ? $this->_success
- : $this->_failure;
- }
+ return ($this->_redis->setTimeout($this->_key_prefix.$session_id, $this->_config['expiration']))
+ ? $this->_success
+ : $this->_failure;
}
return $this->_failure;