summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/Session_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-02-22 11:16:26 +0100
committerAndrey Andreev <narf@devilix.net>2022-02-22 11:16:26 +0100
commitd4b15bcdbd6a06e01d8de927c1d26f8f5bc4ed6c (patch)
tree182d0c9991edf51bc0772954153f0a87157762f9 /system/libraries/Session/Session_driver.php
parentc7bf8487eafdaeeb137401eb6f63022ec8798f31 (diff)
[ci skip] SessionUpdateTimestampHandlerInterface
Diffstat (limited to 'system/libraries/Session/Session_driver.php')
-rw-r--r--system/libraries/Session/Session_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/Session_driver.php b/system/libraries/Session/Session_driver.php
index ec4b76841..24b4b465e 100644
--- a/system/libraries/Session/Session_driver.php
+++ b/system/libraries/Session/Session_driver.php
@@ -122,7 +122,7 @@ abstract class CI_Session_driver {
*/
public function php5_validate_id()
{
- if (isset($_COOKIE[$this->_config['cookie_name']]) && ! $this->validateSessionId($_COOKIE[$this->_config['cookie_name']]))
+ if ($this->_success === 0 && isset($_COOKIE[$this->_config['cookie_name']]) && ! $this->validateId($_COOKIE[$this->_config['cookie_name']]))
{
unset($_COOKIE[$this->_config['cookie_name']]);
}