Documentation

ZendAuthenticator.logged_in_key

This enables you to specify the session key to look for when authenticating the user with Zend 2 framework. This option defaults to "loggedin"

$moxieManagerConfig['ZendAuthenticator.logged_in_key'] = "MyLoggedInKey";

You can then use this code to authenticate the user:

// Login the user and override the filesystem.rootpath setting in your controller
$session = new Zend\Session\Container();
$session->{"MyLoggedInKey"} = true;
$session->{"moxiemanager.filesystem.rootpath"} = "/var/www/myroot";