Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter 2x firefox session

I have problem with the sessions in firefox browsers, everything works in Chrome and IE - it saves sessions correctly , but Firefox doesn't . I've tried with Native sessions to save in the db the session - in FF it saves it but again not working, just after login to the page it redirects as if I'm not logged in.It does this things only in FF. I saw other questions like this and from them I saw the Native session classs, but no use.

like image 844
V.Rashkov Avatar asked Aug 08 '12 09:08

V.Rashkov


1 Answers

For this same problem I use the following header in Controller constructor and it did the trick.

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
like image 99
Noor Avatar answered Sep 24 '22 03:09

Noor