Hi Gang!
I have a page where if a case is true I create a cookie. That part works great. However, I later want to retrieve the cookie but from a different page. When I call the cookie on the second page the value is back to "". Is this possible to do?
I havent set the expire property on the cookies on Page1. I wanted them to expire at the end of the session. Does that mean actually they are expiring when I navigate away from the page?
The code to get the cookie back I am using on Page2 is:
Thanks!
Eva
I have a page where if a case is true I create a cookie. That part works great. However, I later want to retrieve the cookie but from a different page. When I call the cookie on the second page the value is back to "". Is this possible to do?
I havent set the expire property on the cookies on Page1. I wanted them to expire at the end of the session. Does that mean actually they are expiring when I navigate away from the page?
The code to get the cookie back I am using on Page2 is:
Code:
Dim ckMember As System.Web.HttpCookie = New HttpCookie("Member")
If Not ckMember Is Nothing Then
With ckMember
If .Item("LastName") <> "" Then
objLastName.Value = CStr(Trim(.Item("LastName")))
End If
End With
End If
Thanks!
Eva