commit | d069b9bc148f739733a5aa0a737e51e57c10b3ad | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Tue Sep 16 10:18:16 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Tue Sep 16 10:18:16 2014 +0300 |
tree | 2eac25e4c7cebd0dc226ec1db990906b76aa6723 | |
parent | c9efaced2fd453bf4c2fcefd31ee1a9afdf8ff16 [diff] |
feature/session (#3073): Bug fixes - CI_Session_database_driver::read() didn't pass the session ID to _get_lock() - CI_Session::unset_userdata() used a wrong key for unsetting when an array is passed to it
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php index a5c9737..be9f5e3 100644 --- a/system/libraries/Session/Session.php +++ b/system/libraries/Session/Session.php
@@ -567,7 +567,7 @@ { foreach ($key as $k) { - unset($_SESSION[$key]); + unset($_SESSION[$k]); } return;
diff --git a/system/libraries/Session/drivers/Session_database_driver.php b/system/libraries/Session/drivers/Session_database_driver.php index 032199f..563d1fd 100644 --- a/system/libraries/Session/drivers/Session_database_driver.php +++ b/system/libraries/Session/drivers/Session_database_driver.php
@@ -116,7 +116,7 @@ public function read($session_id) { - if ($this->_get_lock() !== FALSE) + if ($this->_get_lock($session_id) !== FALSE) { $this->_db ->select('data')