There seems that when sessions expire Auth has problems redirecting to
where you were. So a lot of people have added their own "redirect to"-
logic in the login action.
I haven't looked into it closely yet but I have read other posts about
it and noticed it sometimes myself.
I am not sure these observations are accurate but this is what I
"think" happens:
Expired session and you click a link = you are redirected to the page
you were at not the page you clicked to get to.
Expired session and you refresh the browser or type an url = you are
redirected to the default loginRedirect not the page you wanted.
On Feb 22, 6:08 pm, EchoChargen <[EMAIL PROTECTED]> wrote:
> I've seen several posts and articles with this type of thing in
> Users->login():
>
> if($this->Auth->login()) {
> $this->redirect($this->Auth->loginRedirect);
> }else{
> $this->data = null;
> $this->set('error', $this->Auth->loginError);
> }
> Doesn't the Auth component do the above already? If so, what is the
> advantage to doing this again in your controller login() method?
> Thanks,
> Jeremy
>
> On Feb 22, 10:18 am, BlenderStyle <[EMAIL PROTECTED]> wrote:
>
> > Okay, I'll be the first to mention. The title sucks, and this is in no
> > way a step-by-step because I really don't explain much. Sorry about
> > that.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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=en
-~----------~----~----~----~------~----~------~--~---