We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
General Discussions
Search
Authorization in different contexts
6 Posts
t3mnikov
Reply #1,
11 years, 2 months ago
Hello friends!
At my site two additional context ('web', 'ctx1', 'ctx2'). How to be authorized in all contexts?
Thanks!
23 Posts
just_nico
Reply #2,
11 years, 2 months ago
If you use the
Login plugin
you can use the
&contexts=`web,ctx1,ctx2`
setting.
Otherwise you have to add it with
$modx->addSessionContext('contextname');
https://rtfm.modx.com/revolution/2.x/developing-in-modx/other-development-resources/class-reference/moduser/moduser.addsessioncontext