summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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');