From b4b215e6baed4e61a7e1143e2ff22713846b0667 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 19 Jan 2015 11:59:11 +0200 Subject: feature/session (#3073): Add CI_Session:: as reference to For backwards compatibility purposes. --- system/libraries/Session/Session.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'system/libraries/Session/Session.php') 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; } // ------------------------------------------------------------------------ -- cgit v1.2.3-24-g4f1b