- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI 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!
Thanks!
This question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership