Redirect after authentification?

2007-07-13 Thread Vincent Fleuranceau
Hi all, I'm new to CakePHP (and MVC in general). And so far I'm very happy wiht it. I've just followed the blog tutorial and I've combined it with the simple authentification example from the manual. It works well so far, but... I would like to know if there is a (simple) way to redirect the

Re: Redirect after authentification?

2007-07-13 Thread kionae
I just store it in a session variable. Any function that requires a user to be logged in gets a line fo code like: $this-Session-write('redirect', '/forums/index'); $this-checkSession(); $this-Session-delete('redirect'); This results in the user either getting redirected to the login page via

Re: Redirect after authentification?

2007-07-13 Thread Vincent Fleuranceau
On 13 juil, 23:51, kionae [EMAIL PROTECTED] wrote: I just store it in a session variable. Any function that requires a user to be logged in gets a line fo code like: $this-Session-write('redirect', '/forums/index'); $this-checkSession(); $this-Session-delete('redirect'); Thank you