trouble w/ Forms Auth and domain cookies

jeffpriz_at_yahoo.com
Date: 07/26/05

  • Next message: Dominick Baier [DevelopMentor]: "Re: trouble w/ Forms Auth and domain cookies"
    Date: 26 Jul 2005 13:20:36 -0700
    
    

    I'm having trouble with a domain cookie and forms authentication.
    We have several sub-domains so we create a domain cookie for forms
    authentication purposes:

    cook.domain = ".mydomain.com"

    All is good with the world.. I can go all over the place and get in to
    my apps... Great .. except now I can not Log Out...
    I do:
            Web.Security.FormsAuthentication.SignOut()
            Me.Session.Abandon()

    and what happens when I try to come back to my app? I get in just fine,
    never sent back to my login page.

    A little closer inspection using Firefox to watch my cookies, I see
    that I end up with two cookies. One, is my domain cookie, but i also
    end up with a "serversubdomain.mydomain.com" cookie... When I do my
    FormsAuthentication.SignOut() my serverdomain cookie goes away, my
    domain cookie does not.. so I am reauthenticated when I attempt to
    re-enter the site..

    Please help!

    jeffpriz


  • Next message: Dominick Baier [DevelopMentor]: "Re: trouble w/ Forms Auth and domain cookies"