session problems
Posted: Wed Nov 07, 2007 10:17 am
I have a session issue with my scripts... i put sessions on pages like this:
this is in estateagents.php
stop people clicking urls like /process.php
which would cause the process to run when accessed so i decided to put this in my process page :
but it is not working .. it just headers every time rather than doing the code..
Code: Select all
$_SESSION['referer'] = $_SERVER['SCRIPT_NAME'];stop people clicking urls like /process.php
which would cause the process to run when accessed so i decided to put this in my process page :
Code: Select all
if (isset($_POST['SellHouse']) && $_SESSION['referer'] == 'estateagents.php'){
do code}else{
header("location: estateagents.php");
}but it is not working .. it just headers every time rather than doing the code..