title: How to Get session values in default.ctp in cake php3
body: <pre><code>$this-&gt;Auth-&gt;user ( 'username' );
  </code></pre>
  
  <p>is working perfectly fine in controller but I want to check whether any user is logged in or not in default.ctp file using</p>
  
  <pre><code>$this-&gt;Auth-&gt;user ();
  </code></pre>
  
  <p>How can I achieve that?</p>