When I click logout user is redirected to home page and all session values are destroyed but when i click browser back button it still showing page as user is logged in. So is there a way i can remove browser cache in php?
Asked
Active
Viewed 1,098 times
0
-
2Possible duplicate of http://stackoverflow.com/questions/1037249/how-to-clear-browser-cache-with-php – Indrasinh Bihola Nov 05 '14 at 07:26
-
check `session_id()` as returns the string identifying the current session, if set then display that page else redirect him to index page – Captain Planet Nov 05 '14 at 07:26