EllisLab text mark
Advanced Search
Posted: 12 May 2011 01:28 PM
Joined: 2010-08-02
110 posts

Hi people.

I’m workin with session to control if the user is logged in ort not.
The problem is that when the user click on Exit link, it redirects to the login page, destroying the session but if the user click on the return button on the browser, it loads the user page again but when I click on the url and press enter, it works, redirect me to the login page.

In the index() method of user controller I am checking for the user session status.

I think pthe roblem is that when I click the browser return button, it is not loading my controller again.

Can anyone give some help?

Thanks in advance.

Posted: 12 May 2011 02:55 PM   [ # 1 ]   [ Rating: 0 ]
Joined: 2008-11-04
4489 posts

When you use the browser’s back button (I assume that is what you mean), the browser serves the page from local cache, it doesn’t request it again.
If you want that, you have to instruct the browser not to cache the page (but that might have its consequences).


Me: WanWizard.eu | My company: Exite | Datamapper: DataMapper ORM <= LOOKING FOR A NEW MAINTAINER!

Posted: 12 May 2011 03:23 PM   [ # 2 ]   [ Rating: 0 ]
Joined: 2010-08-02
110 posts

Thanks WanWizard =)