By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,002 Members | 1,294 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,002 IT Pros & Developers. It's quick & easy.

Cookies problem on Win2003 Eng + IIS 6.0

P: n/a
I have a demo app where cookies does not work.
The first page create a cookies. The second read the contet.
If I browse the pages via IE6.0 the pages does not work.
If I browse the pages via FireFox the pages work fine.
************ SetCookies.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ARXivar Test - Generazione Cookies</title>
</head>

<body>
<form name="Test" action="./SetCookies.asp" >
<strong>Pagina di generazione Cookies</strong><br><br>
<input name="GeneraCookies" type="submit" value="Genera Cookies »">
</form>
<%
If Request("GeneraCookies") <> "" Then
Response.Cookies("Nome").Path = "/"
Response.Cookies("Nome") = "Claudio"
Response.Cookies("Nome").Expires = DateAdd("h", 4, now) 'Date + 1

Response.Cookies("Cognome").Path = "/"
Response.Cookies("Cognome") = "Maccari"
Response.Cookies("Cognome").Expires = DateAdd("h", 4, now) 'Date + 1

Response.Write("Cookies generati")
Response.Write("<br><br><a href='./GetCookies.asp'>Clicca qui per leggere
il contenuto dei cookies</a>")
End If
%>
</body>
</html>
************ GetCookies.asp<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ARXivar Test - Lettura Cookies</title>
</head>

<body>
<strong>Contenuto dei cookies:</strong><br><br>
Nome: <%=Request.Cookies("Nome")%>
<br>
Cognome: <%=Request.Cookies("Cognome")%>
</body>
</html>

Jan 31 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.