Last updated May 15th, 2019 | Page history | Improve this page | Report an issue
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.
$292 per month—let's make that $500!Learn more
Name: Session Cookie Domain Type: String Default: localhost
Use this setting to customize the session cookie domain.
You will need to clear your local cookies in your browser after changing this setting.
This setting is useful to change if you are running multiple Contexts on one top-level domain, but want to share logins across them. For example, changing the setting to:
will allow all MODX sessions to persist across any *.mydomain.com site, allowing logins to work across subdomains.
This setting isn't in MODX by default, as it's best to let PHP calculate this on its own. Only set this if you are sure of what you are doing.