Hi,
I have question regarding how to prevent users from going back to the
application after they have logout.
Below is my index and logout for userscontroller:
function index() {
$this->checkSession();
if ($this->Session->check('user')) {
$this->User->recursive = 0;
$this->set('users', $this->User->findAll());
} else {
$this->redirect('/');
}
}
function logout() {
$this->Session->delete('user');
$this->Session-> destroy();
$this->redirect('/');
}
But I still am not able to stop users from clicking on the browser's
back button, and yet still able to see the index page even after they
have logout. Would anyone be able to point out what am I missing?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---