title: Modx manager custom page check if user is logged in and has manager access
body: <p>I am developing modx manager custom page and cannot check if user is logged in and has access to manager ? So far I tried </p>
  
  <pre><code>$modx-&gt;user-&gt;get('username');
  </code></pre>
  
  <p>All i get is <strong>(anonymous)</strong> even if i am logged in and when i am not logged in.I have also tried sessioncontext etc as well. Am i doing something wrong. Did anyone faced same issue. </p>