diff options
author | dchill42 <dchill42@gmail.com> | 2012-07-31 16:55:07 +0200 |
---|---|---|
committer | dchill42 <dchill42@gmail.com> | 2012-07-31 16:55:07 +0200 |
commit | 2642920e4781db091309ab97d0ff43c22e7c7e44 (patch) | |
tree | 539f9ef3d709b3debbaf038e1947dfdb8e43b66e /system/libraries/Session/drivers/Session_native.php | |
parent | 4153c928229ff174743b78472ae27138cd715efe (diff) |
Damn, missed files on last commit
Diffstat (limited to 'system/libraries/Session/drivers/Session_native.php')
-rwxr-xr-x | system/libraries/Session/drivers/Session_native.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/system/libraries/Session/drivers/Session_native.php b/system/libraries/Session/drivers/Session_native.php index 27db942eb..356deb4dc 100755 --- a/system/libraries/Session/drivers/Session_native.php +++ b/system/libraries/Session/drivers/Session_native.php @@ -36,10 +36,20 @@ class CI_Session_native extends CI_Session_driver { // Get config parameters $config = array(); $CI =& get_instance(); - foreach (array('sess_cookie_name', 'sess_expire_on_close', 'sess_expiration', 'sess_match_ip', - 'sess_match_useragent', 'cookie_prefix', 'cookie_path', 'cookie_domain') as $key) + $prefs = array( + 'sess_cookie_name', + 'sess_expire_on_close', + 'sess_expiration', + 'sess_match_ip', + 'sess_match_useragent', + 'cookie_prefix', + 'cookie_path', + 'cookie_domain' + ); + foreach ($prefs as $key) { - $config[$key] = isset($this->_parent->params[$key]) ? $this->_parent->params[$key] : $CI->config->item($key); + $config[$key] = isset($this->_parent->params[$key]) ? $this->_parent->params[$key] : + $CI->config->item($key); } // Set session name, if specified |