title: Cakephp after register auto log in
body: <p>How to auto log in after I register? Im using this code, after I Save the data</p>
  
  <pre><code>$this-&gt;UserAuth-&gt;login($user);
  $this-&gt;redirect('/');
  </code></pre>
  
  <p>but this is not working</p>