summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/Session_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-08-22 13:24:57 +0200
committerGitHub <noreply@github.com>2018-08-22 13:24:57 +0200
commit7452f415cdb9387dd1af689224abca53f424c997 (patch)
tree75cf440c36c53711ab5d75a5235923c3862163da /system/libraries/Session/Session_driver.php
parent4ea5cf13ec3f99e6eaedd9c2f1452e6ae173023b (diff)
parentd3e9273de9af35bcbff77c251ca23bd621eecfb5 (diff)
Merge pull request #5563 from it-can/fix5545
fix #5545
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 2fe30b8a2..a26b3a328 100644
--- a/system/libraries/Session/Session_driver.php
+++ b/system/libraries/Session/Session_driver.php
@@ -121,7 +121,7 @@ abstract class CI_Session_driver implements SessionHandlerInterface {
*/
public function php5_validate_id()
{
- if (PHP_VERSION_ID < 70000 && isset($_COOKIE[$this->_config['cookie_name']]) && ! $this->validateId($_COOKIE[$this->_config['cookie_name']]))
+ if (isset($_COOKIE[$this->_config['cookie_name']]) && ! $this->validateSessionId($_COOKIE[$this->_config['cookie_name']]))
{
unset($_COOKIE[$this->_config['cookie_name']]);
}