When I store cookies using:
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....???!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
What am I doing wrong?
Woka




Reply With Quote