Just set the appropriate response headers using HTML or PHP.
As you're here at a HTML forum, here's the HTML equivalent:
Joined: Oct 08, 2006
I should add, this does not prevent the user from actually going back to the previous page (which is simply impossible). It just prevents the previous page being viewed from the browser cache, which would make the user think: "Hey, I am already logged out, why do I still see the secured page?!". Adding the response headers prevents the page being cached in the browser, so the browser is forced to actually fire a request to the server, where you can easily check if the user is logged in or not and handle the response accordingly.
Joined: Jul 08, 2008
the cache-control mechanism doesnt work for me. I tried using session variables in php --session_register and session_destroy;
But still I am not able to go ahead.
Anyone please help me with steps in using session variables.
I am new to php. So it is a bit difficult for me.Please help