summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/drivers/Session_cookie.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-15 10:12:37 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-15 10:12:37 +0200
commit02117680c8a3a4c7da2b10e25fc6c29fd5fa9bd2 (patch)
tree5a63946c78e1e65a9eba848e4d3e2d806b123dfa /system/libraries/Session/drivers/Session_cookie.php
parent37c85d73c4428bd19fafbba33992649fc29946d5 (diff)
Partially fix #1702
Diffstat (limited to 'system/libraries/Session/drivers/Session_cookie.php')
-rwxr-xr-xsystem/libraries/Session/drivers/Session_cookie.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_cookie.php b/system/libraries/Session/drivers/Session_cookie.php
index fb62c7ec4..5bb1f7aa6 100755
--- a/system/libraries/Session/drivers/Session_cookie.php
+++ b/system/libraries/Session/drivers/Session_cookie.php
@@ -405,7 +405,7 @@ class CI_Session_cookie extends CI_Session_driver {
}
// Is the session current?
- if (($session['last_activity'] + $this->sess_expiration) < $this->now)
+ if (($session['last_activity'] + $this->sess_expiration) < $this->now OR $session['last_activity'] > $this->now)
{
$this->sess_destroy();
return FALSE;