Welcome Guest, Not a member yet? Register   Sign In
CI, Sessions, Ajax and expiration
#5

[eluser]Codepeak[/eluser]
[quote author="Federico BaƱa" date="1293139196"]It comes to my mind that the iframe could be regenerating the cookie that's related to the CI session, but the ajax is still sending the old one.
You should try using firebug to check the status of the cookie on both the frame and the main window.

I've never had to face this issue before, but im quite sure i'll do in the future... so if you find a solution please post it back Smile[/quote]

OK, you were right. The session doesn't change in jQuery, it's still the old one since the IFRAME refreshes and gets new cookie values. Missmatch, logout.

Now it's time to figure our how to reload cookies before every ajax-request I guess... Back to Google. I'll keep this thread updated!


Messages In This Thread
CI, Sessions, Ajax and expiration - by El Forum - 12-23-2010, 08:37 AM
CI, Sessions, Ajax and expiration - by El Forum - 12-23-2010, 08:40 AM
CI, Sessions, Ajax and expiration - by El Forum - 12-23-2010, 09:19 AM
CI, Sessions, Ajax and expiration - by El Forum - 12-23-2010, 09:52 AM
CI, Sessions, Ajax and expiration - by El Forum - 12-23-2010, 10:09 AM
CI, Sessions, Ajax and expiration - by El Forum - 12-23-2010, 11:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB