| Current Path : /home2/wtmwscom/www/ |
| Current File : /home2/wtmwscom/www/set_cookie.php |
<?php
$pass = $_GET['pass'];
if($pass == '4100'){
// send a cookie that expires in 1 hour
setcookie("auth","velocity", time()+3600);
//$uri = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$uri = $_SERVER['HTTP_REFERER'];
header("Location: $uri");
//$invalid=FALSE;
}
else {
header('Location: client-security.php');
//$invalid = TRUE;
}
//echo json_encode( array('invalid'=>$invalid));
?>