Quote from: acidrat at May 07, 2013, 09:50 AMUPDATE: i have found out that if i set session_enabled 0 in the web context then i dont get the session cookie in all context's. Could the http://rtfm.modx.com/display/revolution20/Using+One+Gateway+Plugin+to+Manage+Multiple+Domains Gateway plugin be the cause of the problem?
Yes. Whatever context is initialized handles the session. If you need different sessions for different Contexts, you should look into using a custom gateway per Context, or a custom index.php that initializes the correct Context for the request (vs. switching to it like the plugin solutions would).
Also, keep in mind that each domain has a separate session, since session cookies are stored in the browser by domain. Exception being if you specify all sub-domains in the session_cookie_domain setting (or session.cookie_domain PHP ini config), e.g.
.domain.tld.