We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33991
    • 65 Posts
    It can be temporary solved by cleaning user right before switching context

    Switch plugin:
    if ($modx->event->name == 'OnHandleRequest') {
    	if (strpos($_SERVER['REQUEST_URI'], 'context2')) {
    		$modx->user = null;
    		$modx->switchContext('context2');
    	}
    }
    


    http://bugs.modx.com/issues/10221