M
Mike Johnson
I've copied and pasted simple code to create a cookie but it never saves the
cookie. Is there something you have to set in the web.config file to use
cookies? Here is the simple code....
Dim cook1 As New HttpCookie("MyCookie")
Dim now As DateTime = DateTime.Now
cook1.Expires = now.AddDays(30)
cook1.Values.Add("MyCookie", "Joe Bob")
Response.Cookies.Add(cook1)
Mike
cookie. Is there something you have to set in the web.config file to use
cookies? Here is the simple code....
Dim cook1 As New HttpCookie("MyCookie")
Dim now As DateTime = DateTime.Now
cook1.Expires = now.AddDays(30)
cook1.Values.Add("MyCookie", "Joe Bob")
Response.Cookies.Add(cook1)
Mike