title: CakePHP - I can not access $ this-> Auth-> user () data after the login
body: <p>This is my AppController:</p>
  
  <pre><code>class AppController extends Controller {
  
  public $components = array('Auth');
  
  public function beforeFilter() { 
  
  //Set up Auth Component
          $this-&gt;Auth-&gt;userModel = 'CmsUser';
          $this-&gt;Auth-&gt;authenticate ='Form';
          $this-&gt;Auth-&gt;fields = array('username' =&gt; 'username', 'password' =&gt; 'password');
          $this-&gt;Auth-&gt;loginAction = array('controller' =&gt; 'admin_cms_users', 'action' =&gt; 'login','admin' =&gt; true);
          $this-&gt;Auth-&gt;loginRedirect = array('controller' =&gt; 'admin_cms_helps', 'action' =&gt; 'index');
          $this-&gt;Auth-&gt;logoutRedirect = '/';
          $this-&gt;Auth-&gt;loginError = 'Pogrešno korisničko ime/lozinka. Pokušajte ponovo!';
          $this-&gt;Auth-&gt;autoRedirect = false; // najvažnija postavka za redirekciju
      $this-&gt;Auth-&gt;allow('display');
          // Additional criteria for loging.
          $this-&gt;Auth-&gt;userScope = array('CmsUser.active' =&gt; 1); //user needs to be active.
  
  }
  </code></pre>
  
  <p>This is my AdminCmsUsersController:</p>
  
  <pre><code>class AdminCmsUsersController extends AppController {
  
      public $name = 'AdminCmsUsers';
      public $uses = array('CmsUser'); 
  
  public function beforeFilter(){
  parent::beforeFilter();
  }
  
  .
  .
  .
  .
  public function admin_login() {
  $this-&gt;layout='cms_main';
  if($this-&gt;request-&gt;is('post') AND $this-&gt;Auth-&gt;login($this-&gt;request-&gt;data)){
  $this-&gt;CmsUser-&gt;id = $this-&gt;Auth-&gt;user('id');
  print_r($this-&gt;Auth-&gt;user());
  print_r($this-&gt;Session-&gt;read());
  $this-&gt;redirect($this-&gt;Auth-&gt;redirect());
  }
  
  }
  .
  .
  .
  </code></pre>
  
  <p>print_r($this->Auth->user()) result:</p>
  
  <pre><code>Array
  (
      [CmsUser] =&gt; Array
          (
              [username] =&gt; someuser
              [password] =&gt; somepass
          )
  
  )
  </code></pre>
  
  <p>//print_r($this->Session->read()) results:</p>
  
  <pre><code>    [Auth] =&gt; Array
          (
              [User] =&gt; Array
                  (
                      [CmsUser] =&gt; Array
                          (
                              [username] =&gt; lupus10
                              [password] =&gt; canis10
                          )
  
                  )
  
          )
  
  )
  </code></pre>
  
  <p>My user has a name, email, and other data. Why can not access this data?</p>