I'm Using codeigniter frame work and i'm having some problems with session.
in my login form i ask for username and password, then if supplied credentials are valid, then i put them in to a session variable as this.
$user_session_data = array(
'username' => $this->input->post('username'),
'is_logged_in' => 1
);
$this->session->set_userdata($user_session_data);
everything works well before. but today i add codes in to some pages to set some error messages to session.
$error_array[]="There Is An Error When Inserting Data In To The Database";
$this->session->set_userdata(array('upload_errors' => $error_array));
after this done. i can log into the admin area. but i cant do any thing it always ask me to login again. i think the second code is overriding the loging session data.
any idea to solve this error?