summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/Session.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-01-08 15:57:19 +0100
committerAndrey Andreev <narf@devilix.net>2022-01-08 15:57:19 +0100
commit77d825a1e91046e1846efc54e777f641e23f31a7 (patch)
tree0da25a8f908382cb179e750290fd4121ff74368a /system/libraries/Session/Session.php
parente32b608aef116d4b2fecabb3745b1b8fe4f6004d (diff)
[ci skip] Actually use the Session wrapper (ref #6078)
Diffstat (limited to 'system/libraries/Session/Session.php')
-rw-r--r--system/libraries/Session/Session.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 5a5fc8766..a62a86f7f 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -107,17 +107,17 @@ class CI_Session {
$wrapper = new CI_SessionWrapper($class);
if (is_php('5.4'))
{
- session_set_save_handler($class, TRUE);
+ session_set_save_handler($wrapper, TRUE);
}
else
{
session_set_save_handler(
- array($class, 'open'),
- array($class, 'close'),
- array($class, 'read'),
- array($class, 'write'),
- array($class, 'destroy'),
- array($class, 'gc')
+ array($wrapper, 'open'),
+ array($wrapper, 'close'),
+ array($wrapper, 'read'),
+ array($wrapper, 'write'),
+ array($wrapper, 'destroy'),
+ array($wrapper, 'gc')
);
register_shutdown_function('session_write_close');