summaryrefslogtreecommitdiffstats
path: root/system/init/init_session.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/init/init_session.php')
-rw-r--r--system/init/init_session.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/init/init_session.php b/system/init/init_session.php
new file mode 100644
index 000000000..cf493e53c
--- /dev/null
+++ b/system/init/init_session.php
@@ -0,0 +1,18 @@
+<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+
+/**
+ * Loads and instantiates session class
+ *
+ * @access private called by the app controller
+ */
+
+if ( ! class_exists('CI_Session'))
+{
+ require_once(BASEPATH.'libraries/Session'.EXT);
+}
+
+$obj =& get_instance();
+$obj->session = new CI_Session();
+$obj->ci_is_loaded[] = 'session';
+
+?> \ No newline at end of file