summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Session/drivers/Session_redis_driver.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php
index 4976e9473..1f1004fb9 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -447,13 +447,15 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
*
* Sets expiration for a key
*
+ * @param string $key Redis key
+ * @param int $ttl The key's remaining Time To Live, in seconds.
* @return bool
*/
- protected function _expire($key, $timeout)
+ protected function _expire($key, $ttl)
{
if (method_exists($this->_redis, 'expire'))
- return $this->_redis->expire($key, $timeout);
- return $this->_redis->setTimeout($key, $timeout);
+ return $this->_redis->expire($key, $ttl);
+ return $this->_redis->setTimeout($key, $ttl);
}
// ------------------------------------------------------------------------
@@ -463,6 +465,7 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
*
* Deletes a key
*
+ * @param string $key Redis key
* @return bool
*/
protected function _delete($key)