Hello friends!!
I am having an issue.
I tried to remove the data cached in a page using the below header() functions.
Code:
[code=php]header("Cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
Header("Pragma" , "No-cache");
if ($_SESSION["base"] != "1") /* where the value for base assigned in previous page.*/
{
// When user attempts to go back after the session was destroyed
Header("Locatio n:error.html");
}
[/code]
User who try to refresh or push back/forward button will transferred to a page which contains the error message, so that, the main page becomes unavailable to the user.
This works perfectly in browsers like IE6+, Safari and Mozilla firefox. But, this doesn't work with Opera. I would be very happy, if some one resolves this issue for me.
Thanks a million in advance.
VJ.
I am having an issue.
I tried to remove the data cached in a page using the below header() functions.
Code:
[code=php]header("Cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
Header("Pragma" , "No-cache");
if ($_SESSION["base"] != "1") /* where the value for base assigned in previous page.*/
{
// When user attempts to go back after the session was destroyed
Header("Locatio n:error.html");
}
[/code]
User who try to refresh or push back/forward button will transferred to a page which contains the error message, so that, the main page becomes unavailable to the user.
This works perfectly in browsers like IE6+, Safari and Mozilla firefox. But, this doesn't work with Opera. I would be very happy, if some one resolves this issue for me.
Thanks a million in advance.
VJ.
Comment