Ok, I figured it out with some help. I wasn't using Response. Instead I was using Request. Here is the right way to load a cookies at the class level:
'/// Write a working cookie to hold all the variables
Dim anotherCookie As New HttpCookie("OKS")
anotherCookie.Values("Dojo") = "dojoID"
anotherCookie.Values("Course") = "courseID"
anotherCookie.Values("Family") = "familyID"
anotherCookie.Values("Member") = "memberID"
anotherCookie.Expires = DateTime.Now.AddDays(1)
HttpContext.Current.Response.Cookies.Add(anotherCookie)
John
Marked as answer by tualatin on Dec 30, 2011 01:54 AM
Tualatin
Member
131 Points
172 Posts
Re: how to view a cookie
Dec 30, 2011 01:54 AM|LINK
Ok, I figured it out with some help. I wasn't using Response. Instead I was using Request. Here is the right way to load a cookies at the class level:
'/// Write a working cookie to hold all the variables Dim anotherCookie As New HttpCookie("OKS") anotherCookie.Values("Dojo") = "dojoID" anotherCookie.Values("Course") = "courseID" anotherCookie.Values("Family") = "familyID" anotherCookie.Values("Member") = "memberID" anotherCookie.Expires = DateTime.Now.AddDays(1) HttpContext.Current.Response.Cookies.Add(anotherCookie)