summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/Session_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-03-03 00:20:55 +0100
committerAndrey Andreev <narf@devilix.net>2022-03-03 00:20:55 +0100
commit3378180483140fa9251e50843bda15a508e85e89 (patch)
tree5511462e595ccd3d40033d5c2ec01154ff2aa7eb /system/libraries/Session/Session_driver.php
parentbb7192e43b251cb9620b35859f6283e80897c331 (diff)
parent4196eb22d7aa2f9d8325865567c2cbb82fd70960 (diff)
Merge branch '3.1-stable' into develop
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']]);
}