The thing is that it is not a blank page. It contains the value of
whatever details that is seen as per when he logged in.
On Dec 5, 2:15 am, kiger <[EMAIL PROTECTED]> wrote:
> Why does it matter? If you delete the session storing the user data,
> then pressing back might bring him to a blank page, but who cares?
>
> On Dec 4, 12:49 pm, Joyce <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---