summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/drivers
diff options
context:
space:
mode:
authorroastduck <beantang.tang@gmail.com>2016-02-28 03:18:19 +0100
committerroastduck <beantang.tang@gmail.com>2016-02-28 03:18:19 +0100
commitb89f5d3ddfc897f0afc4f15a0993f8f1b2b56b88 (patch)
tree780d195e860d4930f7f0ff208600bbc3c9d98cb3 /system/libraries/Session/drivers
parented49c3ba41cdbcc61df153ddf94eab62abd64ede (diff)
clean current lock key in redis session driver
set $this->_lock_key to NULL after close Signed-off-by: roastduck <beantang.tang@gmail.com>
Diffstat (limited to 'system/libraries/Session/drivers')
-rw-r--r--system/libraries/Session/drivers/Session_redis_driver.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php
index dc4328644..5081bd5d4 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -278,6 +278,7 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
if ($this->_redis->ping() === '+PONG')
{
isset($this->_lock_key) && $this->_redis->delete($this->_lock_key);
+ $this->_lock_key = NULL;
if ($this->_redis->close() === $this->_failure)
{
return $this->_failure;