Sessions not working in IE 7 |
[eluser]flaviog[/eluser]
So finally I got a solution for problematic sessions with IE ( mainly 7 ). After I tried: - renaming $config['sess_cookie_name'] = 'cisession'; - increasing $config['sess_expiration'] ; - setting $config['sess_match_useragent']to FALSE ; etc ... all solutions I found on this forum, and still having the problem after days of testing, I concluded the problem is NOT CodeIgniter. I found a solution with the OLD method of deleting cookies, but with a trick, you have to delete the cookies with IE's config but from OUTSIDE IE, and while Internet Explorer is NOT running. If not, it doesn't always work. Check http://support.microsoft.com/kb/278835#howtoie7 Also, you can try as I always do, recommending Firefox or Chrome to users (to stop loosing time with Internet Explorer bugs and inconsistencies). Good luck and thank you all for the help you always provide on this forum.
[eluser]imcl[/eluser]
On IE7 (and only on IE7) I get a 404 page after I click 'log in' -- is this part of the problem we've been discussing in this thread? Have others seen this behavior related to the session/cookie issue? I am using Tank_Auth and CI 2.0.
[eluser]InsiteFX[/eluser]
Make sure your cookie is named cisession and not ci_session ! InsiteFX
[eluser]imcl[/eluser]
@InsiteFX --do you mean changing Code: $config['sess_cookie_name'] = 'ci_session'; Code: $config['sess_cookie_name'] = 'cisession'; I did that and still doesn't work. I also increased Code: $config['sess_expiration'] = 720000; but also didn't work. Any other suggestions?
[eluser]InsiteFX[/eluser]
Check you cookie settings under IE Internet Options! InsiteFX
[eluser]imcl[/eluser]
thanks insiteFX -- but I can't expect my users to adjust their IE7 cookie setup in order to login -- is there a more practical / user-friendly solution?
[eluser]WanWizard[/eluser]
A 404 error can not be caused by a cookie/session issue. The worst thing that can happen is that the session/cookie is not defined, which means you're still NOT logged in after a page reload. I suggest you look elsewhere. Did you check your logs (CI + webserver), to see what is exactly requested when you login?
[eluser]Unknown[/eluser]
Taking out the "_" in the cookie name also worked for me. Thanks for the help and finding such a stupid bug.
[eluser]InsiteFX[/eluser]
No that is the only way to do it, if your users have their cookie settings set like that then there is no way you can control their login! It is a browser setting not a setting you can control! There is another possible way around it, search for evercookie! But then you will have to write some of your own code to handle it! InsiteFX
[eluser]Calvin Froedge[/eluser]
Guys, Just remember you can't blame this problem on the client. 68% of my market uses internet explorer - and expecting them to fiddle with their settings is totally ridiculous. It has to just work - or we lose sales. That's reality. |
Welcome Guest, Not a member yet? Register Sign In |