Session expire

My website uses sessions for login, but for some reason within 10 hours the session seems to distroy itsself, is there a way no have no expire time?

ini_set(’session.gc_maxlifetime’, $time_in_seconds);

I don’t know if you can set it as infinate (try setting it to 0) but if you can’t then the best you can do is set it for a really long time.

That doesn’t work if the sessions are saved in a location where sessions from other websites with a lower value for session.gc_maxlifetime are also stored.

See the first note on http://nl3.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime

So in order for this to work change session.gc_maxlifetime and set session.save_path to a path this isn’t used by another website for php sessions.

Mike4x4s, where are you storing the sessions for the app/site concerned? Are they being stored in files or in the web app/sites database?