diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-08 15:57:19 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-08 15:57:47 +0100 |
commit | 52d04d27b6e172093d7d9f70c6e77846b6742742 (patch) | |
tree | 7172fef50753929b92dee81b9f58d6323b2717a1 /system/libraries/Session | |
parent | 413381e7c9f297f94dff156adc4db00ba6ba2c9b (diff) |
[ci skip] Actually use the Session wrapper (ref #6078)
Diffstat (limited to 'system/libraries/Session')
-rw-r--r-- | system/libraries/Session/Session.php | 14 |
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'); |