I know this has been discussed several times but I've not found a real cohesive explaination of how to do this best.
1. I don't want to rely on cookies to help with this. It needs to be straight php.
2. I probably won't have access to the php.ini file so manipulating that is out of the question.
3. 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]
4. 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
1. I don't want to rely on cookies to help with this. It needs to be straight php.
2. I probably won't have access to the php.ini file so manipulating that is out of the question.
3. 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]
4. 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
Comment