php - Refeshing a page to a new state -


I have a written php and mysql use, which has a login feature. When you are logged out and hit back, no member's features should be shown because you are no longer logged in. How do I correct it when a user is no longer logged in and press the back button, then the last page should be before entering the state?

It is difficult to understand which authentication mechanism you are using, but assume that this is a Pure caching issue, which all you display while logged in. The following statements can be added at the beginning of php pages.

  header ("cache-control: no-cache, sure-"); Header ("expiration: Mon, 1 January 1970 05:00:00 GMT");  

It should take care of caching issues. And make sure you use unset () entry variable that you used to keep track of the weather or the user is not logged in ( $ _ session / or similar)


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -