diff options
author | roastduck <beantang.tang@gmail.com> | 2016-02-28 03:18:19 +0100 |
---|---|---|
committer | roastduck <beantang.tang@gmail.com> | 2016-02-28 03:18:19 +0100 |
commit | b89f5d3ddfc897f0afc4f15a0993f8f1b2b56b88 (patch) | |
tree | 780d195e860d4930f7f0ff208600bbc3c9d98cb3 /system/libraries/Session | |
parent | ed49c3ba41cdbcc61df153ddf94eab62abd64ede (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')
-rw-r--r-- | system/libraries/Session/drivers/Session_redis_driver.php | 1 |
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; |