J
jeffpriz
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
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