Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Cookies problem on Win2003 Eng + IIS 6.0

Reply
Thread Tools

Cookies problem on Win2003 Eng + IIS 6.0

 
 
Claudio
Guest
Posts: n/a
 
      01-31-2006
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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Give Request.Cookies and Response.Cookies is there any reason to use another method to use cookies? _Who ASP .Net 7 09-18-2008 07:49 PM
Promote Win2003 R2 in infraestructure Win2003 SP1 =?Utf-8?B?SWdvciBSb2RyaWd1ZXM=?= MCSE 3 06-20-2007 03:50 AM
Any way to reinitialize IIS on Win2003? dgk ASP .Net 2 10-11-2006 06:27 PM
Win2003 IIS and webforms =?Utf-8?B?TWFyZWsgRw==?= ASP .Net 1 01-26-2006 09:06 AM
IIS 6.0 win2003, IIS users moe_rodrigue MCSE 1 04-01-2004 07:37 AM



Advertisments