Skip to content

Commit

Permalink
Add warning to use as context setting only (#488)
Browse files Browse the repository at this point in the history
* Use as context setting only

* Use as context setting only

* Use as context setting only
  • Loading branch information
Jako authored Feb 12, 2024
1 parent cbf0155 commit 3c4f2cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion en/building-sites/settings/anonymous_sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ description: "If disabled, only authenticated users will have access to a PHP se
**Default**: Yes
**Available In**: Revolution 2.5.0+

If disabled, only authenticated users will have access to a PHP session. This can reduce overhead for anonymous users and the load they impose on a MODX site if they do not need access to a unique session. If `session_enabled` is false, this setting has no effect as sessions would never be available.
If disabled, only authenticated users will have access to a PHP session. This can reduce overhead for anonymous users and the load they impose on a MODX site if they do not need access to a unique session. If `session_enabled` is false, this setting has no effect as sessions would never be available.

!!! danger "Use as context setting only"
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 anonymous sessions should be disabled. Setting it to "No" stops MODX from writing session entries of anonymous users to the database (and storing session cookies) and can make a site without required front-end sessions faster.

0 comments on commit 3c4f2cb

Please sign in to comment.