Jump to main content Jump to doc navigation

Name: Session Garbage Collector Max Lifetime
Type: String
Default: 604800
Available In: Revolution 2.1.1+

Age in seconds after which modSessionHandler may delete a session row during PHP session garbage collection. Default 604800 is seven days. MODX also applies this value to the PHP session.gc_maxlifetime ini setting when it starts the session.

GC only runs when PHP’s session.gc_probability / session.gc_divisor allow it. On many Debian/Ubuntu hosts probability is 0, so this setting never takes effect until you fix the server or add a cron. See Session Garbage Collection.

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • Alex
  • A. Moreno
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • Anton Tarasov
  • deJaya
  • JT Skaggs
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • YJ
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$204 per month—let's make that $500!

Learn more