Thanks Lance, I've tried this, but the login() action in the users
controller doesn't appear to fire after the user logs in...

On Nov 17, 3:30 pm, Lance Willett <[email protected]> wrote:
> Jules,
> In order to force a specific redirect after login you'll need to
> specify that redirect in the login action of your users controller. By
> default the Auth component uses its own login action, and thus you
> can't override the redirect behavior after a successful login. To
> force your own redirect, make sure to set autoRedirect to "false" and
> then use $this->redirect in your login action.
>
> See more athttp://api.cakephp.org/class/auth-component.
>
> On Nov 16, 8:38 pm, Jules <[email protected]> wrote:
>
> > I need to force users to a particular url after they've successfully
> > login.
>
> > Currently if a non-logged-in user tries to access an authentication-
> > protected page, the are sent to the login page - so far so good.
> > However, after successful login, they are sent to the page they had
> > previously tried to access.
>
> > I've been experimenting with the Auth component, but can't get this to
> > work.
>
> > Thanks,

--

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


Reply via email to