My Session is not working Properly. My session set code like:
$data=array('username'=>$this->input->post('txtname'),
'password'=>$this->input->post('txtpass')
);
$this->session->set_userdata($data);
When i unset the session like:
$arr=array('username'=>'','password'=>'');
$this->session->unset_userdata($arr);
i am getting the array value null but when i clicked on logout then it shows login page but when i clicked on back button it displays last page information(Username).