Reputation: 911
i set a session data to userdata and redirect to a page. but session data is not saved in IE but chrome, firefox and opera is working
public function access_granted(){
$user_session_data = array(
'username' => $this->input->post('username'),
'is_user_logged_in' => 1
);
$this->session->set_userdata(array("user" => $user_session_data));
$this->session->set_flashdata('successed', 'You Logged in Successedfully');
redirect('index');
}
Upvotes: 2
Views: 1248
Reputation: 1202
I found this article, and it appears to solve the problem for me, but I want to test more before I confirm. In the mean time, you can try this?
http://ellislab.com/forums/viewthread/211955/#982986
Also as mentioned in the comments of your answer, remove the underscore "_" in the cookie name in config.php, if it exists.
Regards,
Kobus
Upvotes: 0
Reputation: 605
use this header in the controller constructor
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
If this doesn't work better to use the native session than the CI session..
Upvotes: 1