diff options
author | George Petculescu <gxgpet@gmail.com> | 2019-06-18 20:38:53 +0200 |
---|---|---|
committer | George Petculescu <gxgpet@gmail.com> | 2019-06-18 20:38:53 +0200 |
commit | e0bdd367067a8231a4c2a8c9589c2e286b6fde6f (patch) | |
tree | c245db67b3c0abbd88b3a455478103559d12d17d /system/libraries/Session/drivers | |
parent | 9ffd233ba6b890ff034e985d1d87969c8dc755a7 (diff) |
Calling php5_validate_id() in the right place, for Redis session driver
Diffstat (limited to 'system/libraries/Session/drivers')
-rw-r--r-- | system/libraries/Session/drivers/Session_redis_driver.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php index c90e94bd3..9ff6a0e1f 100644 --- a/system/libraries/Session/drivers/Session_redis_driver.php +++ b/system/libraries/Session/drivers/Session_redis_driver.php @@ -168,6 +168,7 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle } else { + $this->php5_validate_id(); $this->_redis = $redis; return $this->_success; } @@ -177,8 +178,6 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle log_message('error', 'Session: Unable to connect to Redis with the configured settings.'); } - $this->php5_validate_id(); - return $this->_fail(); } |