1

Findings :

I have done some research on PHP Session and came accross the session.gc_maxlifetime value of 1440 seconds.

I've read on php.net that the maximum value of session.gc_maxlifetime is 65535.

Questions :

  1. Is it possible to set my maxlifetime to more than 65535 seconds?
  2. Why is the session value 1440?
  3. What happens if we increase the session maxlifetime to more than 65535 seconds. the server configuration doesn't support this?
Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Debug Diva
  • 26,058
  • 13
  • 70
  • 123
  • I've edited your question to fix the formatting. The back ticks ("`") should only be used to mark code, not for emphasis. – Wai Ha Lee Oct 07 '15 at 19:09
  • No, the limit isn't 65535 seconds, but it depends on where you're storing your session data... for example, memcache has a limit of 60*60*24*30 seconds (30 days or 2592000 seconds) – Mark Baker Oct 07 '15 at 19:23
  • For q2, see http://stackoverflow.com/questions/14703363/why-is-the-standard-session-lifetime-24-minutes-1440-seconds – Mark Baker Oct 07 '15 at 19:26

0 Answers0