Hey Cookie Monsters...
Say, I have a directory called
In which, I have a page called process.asp that writes a cookie:
Response.Cookies("UserID"
= user
Response.Cookies("UserID"
.expires = date() + 1
Then I have another page in the same directory, called close.asp which contains:
user = lcase(Request.Cookies("UserID"
)
How come I can not get the cookie on the second page? I get no errors and I have confirmed that the cookie was written in the first page.
I have used the code below to loop through the cookie collection and the cookie is not listed:
for each cookie in Request.Cookies
Response.Write (cookie & " = " & Request.Cookies(cookie) & "<BR>"
next
Other cookies are listed but not the one that I want. Any ideas???
Thanks,
mwa
Say, I have a directory called
In which, I have a page called process.asp that writes a cookie:
Response.Cookies("UserID"
Response.Cookies("UserID"
Then I have another page in the same directory, called close.asp which contains:
user = lcase(Request.Cookies("UserID"
How come I can not get the cookie on the second page? I get no errors and I have confirmed that the cookie was written in the first page.
I have used the code below to loop through the cookie collection and the cookie is not listed:
for each cookie in Request.Cookies
Response.Write (cookie & " = " & Request.Cookies(cookie) & "<BR>"
next
Other cookies are listed but not the one that I want. Any ideas???
Thanks,
mwa