title: Modx [revolution 2.3.5] login snippet, users are not getting sessions after logging in.
body: <p>I'm having a strange issue with a new modx site - web users are not getting sessions after logging in.  I'm sure they are authenticating correctly but modx does not seem to be setting the session. I think it has something to do with context access. </p>
  
  <p>I have 3 contexts, web, French &amp; English I have user groups and resource groups which has access to the appropriate contexts. </p>
  
  <p>here is my login snippett:</p>
  
  <pre><code>[[!Login? 
       &amp;loginTpl=`LoginTpl`  
       &amp;logoutTpl=`LogoutTpl`  
       &amp;errTpl=`lgnErrTpl`  
       &amp;loginResourceId=`91`
       &amp;logoutResourceId=`5` 
       &amp;contexts=`English,French`
       ]]
  </code></pre>
  
  <p>users are not being granted access to the web resource as it will be used for internal documentation. </p>
  
  <p>NOW, everything appears to behave normally, if you enter incorrect credentials in the login form, you get a login error. If you enter correct credentials you get forwarded to the correct resource [91] BUT the user does not have a session [[!+modx.user.id]] returns 0 for the anonymous user. 
  AND if I look at my browser cookies, all I have is the default php session cookie and no modx session cookies.  curiously, the cookie path is /docs/ which is the base_url for the web context. if I change the cookie path to / in modx then all pages are blank for the user!! </p>
  
  <p>What is causing the problem here?? </p>