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
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Digital Penguin
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Following Sea
  • Anton Tarasov
  • eydolan
  • Raffy
  • Lefthandmedia
  • Murray Wood
  • Snow Creative
  • Nick Clark
  • Helen
  • JT Skaggs
  • krisznet
  • YJ
  • Yanni
  • Richard

Budget

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

Learn more