Results 1 to 3 of 3

Thread: Storing cookies on a PC from my web site? RESOLVED

Threaded View

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Storing cookies on a PC from my web site? RESOLVED

    When I store cookies using:
    VB Code:
    1. If ValidateLogin(txtUsername.Text, txtPassword.Text) Then
    2.                 objTicket = New FormsAuthenticationTicket(txtUsername.Text, False, 5)
    3.                 objCookie = New HttpCookie(".ASPXAUTH")
    4.                 objCookie.Value = FormsAuthentication.Encrypt(objTicket)
    5.                 Response.Cookies.Add(objCookie)
    6.                 strReturnURL = Request.Params("ReturnURL")
    7.                 If strReturnURL Is Nothing Then
    8.                     Response.Redirect("Main.aspx")
    9.                 Else
    10.                     Response.Redirect(strReturnURL)
    11.                 End If
    12.             Else
    13.                 lblMessage.Text = "Incorect username/password"
    14.             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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width