I've got this piece of code;
[php]
<?php
session_start() ;
$LogCheck=$_SES SION['LogFail'];
if($LogCheck==" True")
{
$LogRes="Incorr ect Username or Password";
}
elseif($LogChec k=="Pass")
{
echo '<meta content="0; URL=home.php" http-equiv="Refresh" />';
$LogRes="Logged In";
}
else
{
$LogRes="";
}
?>[/php]
The problem is even when I destroy the session, if the user has logged in successful before then the page is stored in their cache and it's not checking LogCheck it's just forwarding them because it hasn't been refreshed. Is there anyway I can clear the cache or force the page to refresh so it doesn't do this?
[php]
<?php
session_start() ;
$LogCheck=$_SES SION['LogFail'];
if($LogCheck==" True")
{
$LogRes="Incorr ect Username or Password";
}
elseif($LogChec k=="Pass")
{
echo '<meta content="0; URL=home.php" http-equiv="Refresh" />';
$LogRes="Logged In";
}
else
{
$LogRes="";
}
?>[/php]
The problem is even when I destroy the session, if the user has logged in successful before then the page is stored in their cache and it's not checking LogCheck it's just forwarding them because it hasn't been refreshed. Is there anyway I can clear the cache or force the page to refresh so it doesn't do this?
Comment