hola, resulta que tengo una pagina para que solo puedan entrar si tienen una cookie pero estoi probando y me deja entrar sin tenerla, aber si me ayudar a ver donde esta mi error:
la cookie del login es:
setcookie("**********","$id",time() + 3600);
header("location:inscripcion.php");
y la pagina de la cookie es:
<?
if(isset($_COOKIE["******"]))
echo'
<html>
<head>
<title>inscripcion</title>
<style type="text/css">
body{
background-image: url("imagenes/portada5.jpg");
background-repeat:no-repeat;
background-size: 1025px 630px;
}
</style>
</head>
<body>
<center>
<form name="form1" method="POST" action="resultadoinscripcion.php">
<p><label for="equipo" style="color:blue;"><font size="5">equipo:</font></label>
<input type="text" name="equipo" id="equipo">
<label for="n_jugador1" style="color:blue;"><font size="5">jugador 1:</font></label>
<input type="text" name="nombre1" id="n_jugador1">
<label for="n_jugador2" style="color:blue;"><font size="5">jugador 2:</font></label>
<input type="text" name="nombre2" id="n_jugador2"></p>
<br><br>
<input type="submit" value="enviar" name="salida">
</form>
</center>
</body>
</html>
';
else
echo"debes iniciar sesion
<script type='script/javascript'>
funcion retorno()
(location.href='template_e030.html')
setTimeout ('retorno()' 2000);
</script>";
?>
SI LO PRUEBO EL APPSERV LOCALHOST SI ME FUNCIONA PERO SUBIENDOLO A UN SERVIDOR (YO UTILIZO ESHOST.ES) NO ME FUNCIONA SE ABRE DIRECTAMENTE.