B
Brian
I am having a problem reading cookies.
Here is the code I use to write them:
Dim cookie As New HttpCookie(CookieName)
cookie.Values.Add(ID, value)
'cookie.Expires = Date.Now.AddYears(1)
Response.Cookies.Add(cookie)
response.redirect(url)
Here is the code I use to read them:
Dim Cookie As HttpCookie = Request.Cookies(CookieName)
Dim strC As String = Cookie.Values(ID)
---------
Now everything works fine...but I un-comment that cookie.expires....that I
can't read it?????? otherwise it works?
I would like to have the cookie stay on their computer for a while...so I
know that they have been to my site before...does anyone have any
suggestions?
Brian
Here is the code I use to write them:
Dim cookie As New HttpCookie(CookieName)
cookie.Values.Add(ID, value)
'cookie.Expires = Date.Now.AddYears(1)
Response.Cookies.Add(cookie)
response.redirect(url)
Here is the code I use to read them:
Dim Cookie As HttpCookie = Request.Cookies(CookieName)
Dim strC As String = Cookie.Values(ID)
---------
Now everything works fine...but I un-comment that cookie.expires....that I
can't read it?????? otherwise it works?
I would like to have the cookie stay on their computer for a while...so I
know that they have been to my site before...does anyone have any
suggestions?
Brian