I'm getting the following error:
[NullReferenceException: Object reference not set to an instance of an object.]
It's referencing line 70 (indicated with ** below) in my codebehind:
Dim newCookie As New HttpCookie("userInfo"
newCookie.Expires = "1/1/2002"
newCookie.Values.Add("author", "me"
newCookie.Values.Add("message", "the quick brown fox jumped over the lazy dog"
Dim userCookie As HttpCookie
userCookie = Request.Cookies("userInfo"
** Response.Write(userCookie.Expires.ToString() & "<br>"
What am I doing wrong?
[NullReferenceException: Object reference not set to an instance of an object.]
It's referencing line 70 (indicated with ** below) in my codebehind:
Dim newCookie As New HttpCookie("userInfo"
newCookie.Expires = "1/1/2002"
newCookie.Values.Add("author", "me"
newCookie.Values.Add("message", "the quick brown fox jumped over the lazy dog"
Dim userCookie As HttpCookie
userCookie = Request.Cookies("userInfo"
** Response.Write(userCookie.Expires.ToString() & "<br>"
What am I doing wrong?