Storing cookies on a PC from my web site? RESOLVED
When I store cookies using:
VB Code:
If ValidateLogin(txtUsername.Text, txtPassword.Text) Then
objTicket = New FormsAuthenticationTicket(txtUsername.Text, False, 5)
objCookie = New HttpCookie(".ASPXAUTH")
objCookie.Value = FormsAuthentication.Encrypt(objTicket)
Response.Cookies.Add(objCookie)
strReturnURL = Request.Params("ReturnURL")
If strReturnURL Is Nothing Then
Response.Redirect("Main.aspx")
Else
Response.Redirect(strReturnURL)
End If
Else
lblMessage.Text = "Incorect username/password"
End If
Then IE MUST have it's privacy settings to LOW (medium is default) otherwsie the cookies don't work, and I get redirected back to my login screen....???!
What am I doing wrong?
Woka