I am new to session management. In my project, I need to allow any user who is browsing our webpage to be able to navigate using his unique userid only for 30 minutes without being idle. If the page is idle for more than 30 minutes, when the user comes back after say 45 minutes, he should not be given access to any page unless he logs in once again. At the same time, I need one more functionality to be achieved.
If the user was in the process of filling a form and left half way, I should be able to save all his data(before destroying the session) and the user should be able to continue from where he had stopped. I know this is possible in php. But don't know how to do it.
It would be great if someone helps me in understanding the session management.