I have a login system for multiple users and each user starts a session upon login, the sessions for each user seem to be expiring randomly and then a new session is created as the session_start() function is used at the top of every page. The user's data is still in the cookie for the old session id number which the browser should be looking at, but it looks at the newly created session cookie. I have no idea why the sessions are expiring at random times, sometimes they don't expire as wanted, the only time I destroy the session is in the logout page, the session is not destroyed upon the browser closing as session.cookie_lifetime = 86400. Also I have played around with session.gc_probability and session.gc_maxliftime both of which did not fix my problem. Can someone help? thanks