I set destroy Cookie and Session inside of logout function
but still something remember which page user log off and brings user
back to the page when user log in.
function logout(){
$this->Cookie->destroy();
$this->Session->destroy();
$this->redirect($this->Auth->logout());
}
On Tue, Jun 29, 2010 at 3:37 PM, leafchild <[email protected]> wrote:
> I have Auth login system, and It is working fine - user don't have
> problem login/logout
>
>
>
> However, I want to change one thing. I don't want to session to
> remember where user log off.
> When user login as soon as logout then a user is brought back to where
> user logoff
>
>
> EX)
> When user log off let's say page X then because of
> Auth setting, user is brought back to login page. Then as soon as user
> logout and login again.
> A user will be taken to page X but every time user login I want user
> to see page A.
>
>
>
> I set to like this:
> $this->Auth->loginRedirect = array('controller' => 'users', 'action'
> => 'index');
>
> but this setting is only working when browser is fresh, not after user
> logoff and login again in same browser.
> How can I change the behavior?
>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
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 [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