PHP interesse |
|
ik heb nu:
if(!$_GET['gameid'] AND !$_SESSION['loginwargame'] AND !$_SESSION['gameid']){
$_SESSION['gameid'] = 53;
}
if(isset($_GET['pagina']) AND $_SESSION['gameid'] == ''){
mysql_query("DELETE FROM `[online]` WHERE `login`='{$_COOKIE['login']}' AND `validate`='{$_COOKIE['validate']}' AND `IP`='{$_SERVER['REMOTE_ADDR']}'");
setcookie("login",'',time()-24*60*60,"/","");
setcookie("validate",'',time()-24*60*60,"/","");
unset($_SESSION['loginwargame']);
unset($_SESSION['IP']);
unset($_SESSION['data']);
//$_SESSION['gameid'] = $_GET['gameid'];
//header("Location: ".$mainsite_url."?pagina=home");
}
if(!$_GET['gameid'] AND !$_SESSION['loginwargame'] AND !$_SESSION['gameid']){ $_SESSION['gameid'] = 53; } if(isset($_GET['pagina']) AND $_SESSION['gameid'] == ''){ mysql_query("DELETE FROM `[online]` WHERE `login`='{$_COOKIE['login']}' AND `validate`='{$_COOKIE['validate']}' AND `IP`='{$_SERVER['REMOTE_ADDR']}'"); unset($_SESSION['loginwargame']); unset($_SESSION['data']); //$_SESSION['gameid'] = $_GET['gameid']; //header("Location: ".$mainsite_url."?pagina=home"); }
Graag zou ik willen dat er na het uitloggen / verlopen van de cookies niet wordt doorgelinkt naar game id 53 maar naar een .php pagina of url. Maar hoe zou ik dit moeten doen?
Alvast bedankt,
|