|
|
|
|
|
| | |
| |
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
reading cookies |
|
From: |
joe kingston |
|
Date: |
3/29/2001 10:57:19 AM |
|
IP: |
198.246.32.3 |
I write a cookie in an asp page, it stores
values from a form:
Sub StoreCookie()
for each item in Request.Form
Response.Cookies("UnitActivity")(item)=Request.Form(item)
next
Response.Cookies("UnitActivity").expires=date+30
End Sub
then I try to retrieve it from in another form
for each item in Request.Cookies("UnitActivity")
Response.Write "<br>" + "item is "
Response.Write item + " value = " + Request.Cookies("UnitActivity")(Item)
next
Response.Write "<br>" + "***** "
A test form with almost nothing but the above retrieval picks up the cookie, the production form
with same code, then more, does not. A copy of the
production form (no changes but the name) picks up the cookie once, then breaks like the prod form
what is going on? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|