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.