02-01-2015, 12:17 PM
Hi There everyone!
I have recently upgraded my application to CI 3 RC because of CI's old sessions library, and there is an issue i would like to report.
i was using below structure previously to unset my userdata:
but its not working anymore on my project, its a simple backend for my websites. it was working before, i was on CI 3 Dev release before.
if i change code to below, then it works, issue is with the associative array:
OR
right now my project is on local system, i m using wamp on it, and its a windows 8.1 machine, i have tested in both latest chrome, and firefox.
i can give more details if needed, but i'm fairly new to the codeigniter. please pardon me if posted my first post in the wrong section or if this bug is already reported or if its already addressed.
Thanks.
I have recently upgraded my application to CI 3 RC because of CI's old sessions library, and there is an issue i would like to report.
i was using below structure previously to unset my userdata:
Code:
$user_data = array('admin_id' => '', 'username' => '', 'first_name' => '', 'last_name' => '', 'logged_in' => '');
$this->session->unset_userdata($user_data);
but its not working anymore on my project, its a simple backend for my websites. it was working before, i was on CI 3 Dev release before.
if i change code to below, then it works, issue is with the associative array:
Code:
$this->session->unset_userdata('admin_id');
$this->session->unset_userdata('username');
$this->session->unset_userdata('first_name');
$this->session->unset_userdata('last_name');
$this->session->unset_userdata('logged_in');
OR
Code:
$user_data = array('admin_id', 'username', 'first_name', 'last_name', 'logged_in');
$this->session->unset_userdata($user_data);
right now my project is on local system, i m using wamp on it, and its a windows 8.1 machine, i have tested in both latest chrome, and firefox.
i can give more details if needed, but i'm fairly new to the codeigniter. please pardon me if posted my first post in the wrong section or if this bug is already reported or if its already addressed.
Thanks.