summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Session')
-rw-r--r--system/libraries/Session/Session.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 0d444e8ca..518dc28b0 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -49,7 +49,6 @@ class CI_Session {
*/
public function __construct(array $params = array())
{
-
// No sessions under CLI
if (is_cli())
{
@@ -66,6 +65,11 @@ class CI_Session {
$this->_driver = $params['driver'];
unset($params['driver']);
}
+ // Note: Make the autoloader pass sess_* params to this constructor
+ elseif (empty($params) && $driver = config_item('sess_driver'))
+ {
+ $this->_driver = $driver;
+ }
if (($class = $this->_ci_load_classes($this->_driver)) === FALSE)
{