diff options
author | dchill42 <dchill42@gmail.com> | 2012-08-27 03:45:35 +0200 |
---|---|---|
committer | dchill42 <dchill42@gmail.com> | 2012-08-27 03:45:35 +0200 |
commit | aee9265602c3bb30a1f7f3dfd562b9b36cc612a4 (patch) | |
tree | b92c3ba77623848f02a5e9a0656b97e080b19d26 /system/libraries/Session/Session.php | |
parent | b3816b794592873a4e98187e66745544b463e933 (diff) |
Fixed select_driver(), cookie sess_destroy(), and native cookie name conflict
Diffstat (limited to 'system/libraries/Session/Session.php')
-rwxr-xr-x | system/libraries/Session/Session.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php index 97eab803f..1f24456a4 100755 --- a/system/libraries/Session/Session.php +++ b/system/libraries/Session/Session.php @@ -141,14 +141,17 @@ class CI_Session extends CI_Driver_Library { $child = str_replace($this->lib_name.'_', '', $driver); if (isset($this->$child)) { - // Make driver current and sync userdata - $this->current = $this->$child; - $this->userdata =& $this->current->get_userdata(); + // See if driver is already current + if ($this->$child !== $this->current) { + // Make driver current and sync userdata + $this->current = $this->$child; + $this->userdata =& $this->current->get_userdata(); + } } else { // Load new driver - $this->load_driver($driver); + $this->load_driver($child); } } } |