October 27, 2012
How to solve a session expiration issue
Question by user1295167
I am doing a site which has a problem with session expire issue. The form contain almost 50 input fields , I have done it in ajax. I have given the user checkings in page reload the problem is that session and cookies are setting is done when page reloads,
How can I check whether user logined or not without lossing data? Is there any ajax functions
to retain session?
Answer by Starx
One way of solving this would be to increase the session timeout.
ini_set('session.gc_maxlifetime', '3600'); //Assign the time in seconds