feature/session (#3073): Add CI_Session:: as reference to
For backwards compatibility purposes.
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 9c3b2b0..4a96aa6 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -48,6 +48,13 @@
*/
class CI_Session {
+ /**
+ * Userdata array
+ *
+ * Just a reference to $_SESSION, for BC purposes.
+ */
+ public $userdata;
+
protected $_driver = 'files';
protected $_config;
@@ -341,6 +348,8 @@
unset($_SESSION['__ci_vars']);
}
}
+
+ $this->userdata =& $_SESSION;
}
// ------------------------------------------------------------------------