Problems with sessions in cakePHP : <p>Hello I am new to cakePHP and follow some nice online tuts. Now i have a problem i can't solve so here i am.</p>

<pre><code>   public function beforeFilter(){
    parent::beforeFilter();
    if($this-&gt;request-&gt;action != 'login' &amp;&amp; !this-&gt;Session-&gt;check('User')){
        $this-&gt;Flash-&gt;error(__('U probeert toegang te krijgen tot een beveiligde omgeving'));  
        return $this-&gt;redirect(array('controller' =&gt; 'users', 'action' =&gt; 'login'));
    }
</code></pre>

<p>}</p>

<p>I think it is a bit old and the check need SessionComponent::check($name). But how ?? i can't get it to work.</p>

<p>I use cakePHP 2.8</p>

<p>Paul</p>
