summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-07 18:30:30 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-07 18:30:30 +0100
commit789b1fe3e78f59cdb35ac5e6cf7166f6b97436c7 (patch)
tree43a64b6b9fd29d7934f4bd423a2fe7e13b791574 /system
parentcb28c896fe883a373a906d5c6ef8c71c0b2ae999 (diff)
Add 'sess_regenerate_destroy' setting
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Session/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index ba1919b44..de9b1e829 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -153,7 +153,7 @@ class CI_Session {
}
elseif ($_SESSION['__ci_last_regenerate'] < (time() - $regenerate_time))
{
- $this->sess_regenerate(FALSE);
+ $this->sess_regenerate((bool) config_item('sess_regenerate_destroy'));
}
}
// Another work-around ... PHP doesn't seem to send the session cookie