Welcome Guest, Not a member yet? Register   Sign In
Issue related to ajax requests causing session logout
#1

In my current application, I am making a lot of ajax requests to the backend.

Codeigniter version being used is 2.1.4.

So after a time the session logs out, I think due to session changing and an ajax request still making request using the past token.

With codeigniiter version 2.2.1, I see a fix for "Fixed a bug in the Session Library where session ID regeneration occurred during AJAX requests.".
Since I have a expiration time of 2 hours and I have a single js page application with no page reload, with version 2.2.1 do I need to make a ajax request to change the token in background every 2 hour while no other ajax requests are happening.

Thanks.
Reply


Messages In This Thread
Issue related to ajax requests causing session logout - by satej - 06-11-2015, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB