I am currently developing some PHP/MySQL based sites. Everything is going smoothly except I have problems with session timeouts. the session_start(); command is the first thing on all the pages of the site, and a session will last without issue for the duration defined by the php.ini session. Then, the session expires. Even if the user has been active in the web-app.
How do I ensure that any activity on the site resets the session timeout so that users don't get logged off mid stream?
How do I extend the session timeout on a per site basis regardless of the "session.gc_maxliftime" and or session.cache_expire settings in php.ini.
On my test server, I can play with the ini file, but on hosted solutions I have no control. I have yet to figure out how to permit users to remain logged in indefinetly as long as there is activity and having the session duration be 30 minutes regardless of the server side setting.
My appologies if this is a beginner type question, but I truly need an answer!