salve io ho scritto una pagina semplice semplice per settare un cookie ho sempre usato questa funzine e jnon mi ha mai dato problemi...solo che adesso tale metodo non funzina più con explorer 6 (con Ff e IE7 funziona benissimo)
Codice PHP:
ob_start();
/* login */
require("config.php");
// Collegamneto al SERVER
$db=@mysql_connect($db_host,$db_user,$db_password) or die ("Errore Di collegamnto al Server!");
// Seleziono il DATABASE
@mysql_select_db($db_name, $db) or die("Errore di selezione per il database: $db_name");
$select="SELECT id FROM utente WHERE username='".$_POST["username"]."' AND pwd='".$_POST["pwd"]."'";
$query=@mysql_query($select) or die("Errore in Login");
if(mysql_num_rows($query)>0){
setcookie("login","1",time()+3600*2,"/");
header("Location: ../riservata.php");
}
else{
echo("
<html><head>
<title>Login Errato</title>
<style type=\"text/css\">@import url(style.css);</style>
<meta http-equiv=\"refresh\" content=\"$tempo;URL=../login.htm\">
</head>
<body>
<table class=\"avv\" width=\"760\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#0099CC\" bgcolor=\"#FFFFFF\">
<tr>
<td height=\"68\">
<table width=\"760\" border=\"0\" cellpadding=\"0\">
<tr>
<td width=\"138\"><img src=\"../img/grafica/attenzione.jpg\" width=\"78\" height=\"68\"></td>
<td><div align=\"center\"><font color=\"#FF0000\" size=\"2\" face=\"Tahoma\">ATTENZIONE!</font><font size=\"2\" face=\"Tahoma\">
SI EE' EFFETTUATO UN LOGIN ERRATO
Si prega di attendere il reidirizzamento.... altrimenti cliccare | <a href=\"../login.htm\">QUI</a> |</font></div></td>
<td width=\"138\"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>");
}
sapete quale è il problema??