I know this has been discussed several times but I’ve not found a real cohesive explaination of how to do this best.
- I don’t want to rely on cookies to help with this. It needs to be straight php.
- I probably won’t have access to the php.ini file so manipulating that is out of the question.
- The main goal is not to log a user out after x minutes, but rather to keep them logged in as long as possible without losing their session variable – specifically [user-id]
- Basically I want to keep a session alive for at least 8 hours (full working day) but when it’s done, have it re-direct to the login screen.
Any thoughts? examples would be nice as well, though I can probably go off of ideas as well.
Thanks,
Dave