Codeigniter 2x firefox session

I have a problem with sessions in Firefox browsers, everything works in Chrome and IE - this saves sessions correctly, but Firefox does not. I tried using my own sessions to save the session in db - in FF it saves it, but it does not work again, immediately after entering the page it is redirected as if I were not registered. He does this only in FF. I saw other questions like this, and from them I saw my own session classes, but did not use.

+7
source share
3 answers

For the same problem, I use the following header in the 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"'); 
+2
source

I had a similar problem with codeigniter, it happened that my user agent had many characters for the user database field that the CI documentation tells you about the creation.

try making and modifying the table to change the user_agent field to ci_sessions and check again if firefox is working.

 ALTER TABLE `ci_sessions` MODIFY COLUMN `user_agent` VARCHAR(160) not null 
0
source

if the CI session class does not work only with Firefox, then this is a cookie problem. enable cookies for your domain name under Fifrefox as follows

tools-> options-> privacy-> history: use user settings for history; check "accept cookies" and add your domain to your exceptions, allow your domain www.your_domain.com and what it is;

more details in this link for different versions of FF:

http://www.wikihow.com/Enable-Cookies-in-Firefox

0
source

All Articles