I have stored some UserData in cookie. It works fine in chrome and mozilla. But in IE its unable to get cookie.I am using IE Version 10. Please help me out ?
In Login form :
Dim Mydtt As String = "my custom data "
Dim authTicket = New FormsAuthenticationTicket(2, usrid, Date.Now, Date.Now.AddDays(7), True, Mydtt, "/")
Dim cookie As New HttpCookie("usrlg", FormsAuthentication.Encrypt(authTicket))
Response.Cookies.Set(cookie)
Response.Redirect("~/phed/reports")
In Session Start :
Dim LastLoginCookie As HttpCookie
LastLoginCookie = HttpContext.Current.Request.Cookies.Get("usrlg") ' Return Nothing in IE '
Dim LastLgTicket As FormsAuthenticationTicket = FormsAuthentication.Decrypt(LastLoginCookie.Value)
Dim Mydtt As String = LastLgTicket.UserData