Monday, November 30, 2009

Re: ACL tutorial

Try,

function beforeFilter() {
$this->Auth->logoutRedirect = array('controller' => 'xxx', 'action'
=> 'xxx');
}

function logout() {
$this->Auth->logout();
}

On Nov 30, 10:24 am, Lorenzo Bettini <bett...@dsi.unifi.it> wrote:
> Hi
>
> I've just started using cakephp, and in the second tutorial, the acl
> one, logout() in class userd_controller.php does not seem to work:
>
>         function logout() {
>                 $this->Session->setFlash('Good-Bye');
>                 $this->redirect($this->Auth->logout());
>         }
>
> infact I'm not logged out...
>
> any clue please?
>
> Moreover, are the implementations of these tutorials available for download?
>
> thanks in advance
>         Lorenzo
>
> --
> Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
> HOME:http://www.lorenzobettini.itMUSIC:http://www.purplesucker.com
> BLOGS:http://tronprog.blogspot.com http://longlivemusic.blogspot.com

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: