Need some advise on this one.
The problem. Someone is using the application, they go out for lunch, come back, continue typing, when the click save, POOF!!, session has expired, they lost all the work, save button just send them to the login page. They claim that it has not been 2 hours, Maybe 1 hour.
At the top of every page I have
Code: Select all
ini_set('session.gc_maxlifetime', 7200); // 2 hour inactive session
session_start();
In my bank application I get a cool popup that allows me to login in again if session has expired and dont loose the information. I have never done this myself, need to guidance or nice tutorial links.
Is there a SURE way of making sure a session last the amount of time indicated by gc_maxlifetime??
Thank you