Results 1 to 3 of 3

Thread: ASP.NET cookies and IE privacy...???

  1. #1

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

    Unhappy ASP.NET cookies and IE privacy...???

    How come virtually every web site I go to is allowed to place cookies on my PC, but MY damn web site doesn't
    If I use the following code:
    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
    then my authentiation fails, and I get sent back to the login page.

    There is a fix though!
    Wooohooooo...

    or is it???

    To get round this you need to go to Tools--->Options--->Privicy Tab, and set this to LOW. Medium is default, and VBF works fine, so why doesn't my web site work?

    Does anyone else have this problem?

    Just for reference, my config auth code is:
    Code:
    <authentication mode="Forms">
       <forms loginUrl="login.aspx" protection="All" slidingExpiration="true"/>
    </authentication> 
    
    <authorization>
       <deny users="?"/>
    </authorization>
    This works when TESTING...it ONLY fails when you have Privicy > LOW AND the web site is live, and you go to it via:

    http://www.Woof.com

    or what ever ya web address is.

    To me, this seems like a bloody silly thing to have to do.

    What does anyone else think?

    Woof

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I agree.... something is amiss in your web app and web server...

    just couldn't figure out what !

  3. #3

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