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.
In config.php check and update below lines for session settings.