Bigbug if i leave a page open and the login times out, i come back, type, hit save, the page refreshes and i lose what i just typed. can we auto-reload when i return if the session is dead? timing should match the actual session timeout.
wrongecho We don't kill your php session. We* actively try to keep it alive but it doesn't seem to work if you're in another tab. Try changing up your garbage collection.
Bigbug wrongecho that's what I was saying. It happens when I'm in another tab. I've seen websites use some technique to refresh the page when the tab gets back in focus but you gotta get the timing right, maybe do an auth check and see if we get a 401 then refresh?
johnny The other option really is to move sessions to the Database which would provide some further benefits. I think this is the modern way, but may be down the line depending on how easy it will be to transition.