summaryrefslogtreecommitdiffstats
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:47 +0100
commit52d04d27b6e172093d7d9f70c6e77846b6742742 (patch)
tree7172fef50753929b92dee81b9f58d6323b2717a1
parent413381e7c9f297f94dff156adc4db00ba6ba2c9b (diff)
[ci skip] Actually use the Session wrapper (ref #6078)
-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 87113e2b5..9d4561616 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');