On Feb 5, 8:20 am, Guoguolong <[EMAIL PROTECTED]> wrote:
> But I have tow new problems on Auth1.2
> 1. If I frequently reresh a page with auth, it'll jump to login page,
> why?
Because you will be sending a stale session id
> 2. When refresh a exprired auth page , it'll jump to login page. But
> how can go back to the same page after relogin
In your login function add this sort of logic:
if ( the referer isn't in the session) {
put it in the session
}
In your app controller before filter tell the auth component to
redirect after login to the location you put in the session
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---