PDA

View Full Version : [PHP] SessionID con IE6


Twincpu
23-02-2009, 20:13
Ciao a tutti.
Perchè con IE6 quando mi connetto ad una pagina PHP che apre una sessione, ad ogni refresh il sessionID cambia?
La pagina è presente all'indirizzo: http://www.safdiferioli.it/prova/op.php.
Provate pure.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<link rel="shortcut icon" href="images/saf.ico" type="image/x-icon" />
<title>SAF di Ferioli Pietro</title>
</head>
<body>
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
session_start();
$_SESSION['count'] = isset($_SESSION['count']) ? $_SESSION['count'] : 0;
echo($_SESSION['count']);
$_SESSION['count']++;
print('<br/>SID: ' . session_id());
?>
</div>

</body>
</html>

packllama
24-02-2009, 09:55
Ho provato a collegarmi, ma il SID non cambia. Incrementa il contatore, ma non il SID.

Twincpu
24-02-2009, 10:07
Grazie. Mi hai permesso di avere l'intuizione corretta. Io ho IE6 installato sulla stessa macchina dove c'è IE7. Con questo IE6 ad ogni refresh o cambio pagina viene attribuito dal server un sessionID nuovo. Sul pc in cui ho installato solo IE6,ciò non accade.
Grazie ancora.

packllama
24-02-2009, 10:14
ok! se può servirti, mi sono collegato con firefox e sulla stessa macchina c'è IE7.

in bocca al pupo ;)