Jump to main content Jump to doc navigation

session_enabled

Name: If sessions for the context the setting is added should be enabled or not Type: Yes/No Default: Yes Available In: 2.2.1+

Only use this as a context setting, if you add this to the main system settings and set it to No you will lock yourself out of the manager!

This setting has to be added manually to the context settings when sessions should be disabled. Setting it to "No" stops MODX from writing session entries to the database (and storing session cookies) and can make a site without required front-end sessions faster.

If you disable sessions the preview function from the manager will no longer work (as you don't have a session anymore that allows you to preview unpublished resources). This is fixed in the develop branch for 2.3 though.

See Also

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
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • eydolan
  • Lefthandmedia
  • Murray Wood
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

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

Learn more