In my application has three web pages.
1.) login page.
2.) welcome page
3.) logout page
I have managed the session using PHP session object.
In my application log-In and log-Out functionality is working properly.
Here problem is that: After successful logout when user click on browser back button from logout.php page, again he reach to welcome.php page Whereas he log-Out successfully. But I want to there page has been expired or should not to come back welcome.php page.
Thanks in advance.
This is actually a bit tricky, but (as far as I’m aware) this has something to do with cache.
I managed to avoid this particular problem by adding some headers through PHP:
These should of course only be set when the user is logged in, as caching should be considered a good thing normally.