summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-01-19 10:59:11 +0100
committerAndrey Andreev <narf@devilix.net>2015-01-19 10:59:11 +0100
commitb4b215e6baed4e61a7e1143e2ff22713846b0667 (patch)
tree1cadd35d6df897eb90392ede08582c0e98961e54 /system/libraries/Session
parentc33c3adff7d0c36208fa9c3a1dc364fa7f23f07d (diff)
feature/session (#3073): Add CI_Session:: as reference to
For backwards compatibility purposes.
Diffstat (limited to 'system/libraries/Session')
-rw-r--r--system/libraries/Session/Session.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 9c3b2b06c..4a96aa6b1 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -48,6 +48,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
*/
class CI_Session {
+ /**
+ * Userdata array
+ *
+ * Just a reference to $_SESSION, for BC purposes.
+ */
+ public $userdata;
+
protected $_driver = 'files';
protected $_config;
@@ -341,6 +348,8 @@ class CI_Session {
unset($_SESSION['__ci_vars']);
}
}
+
+ $this->userdata =& $_SESSION;
}
// ------------------------------------------------------------------------