Welcome Guest, Not a member yet? Register   Sign In
[RESOLVED]Session
#1

[eluser]Gerep[/eluser]
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.
#2

[eluser]WanWizard[/eluser]
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).
#3

[eluser]Gerep[/eluser]
Thanks WanWizard =)




Theme © iAndrew 2016 - Forum software by © MyBB