HELP: FormsAuthentication Cookie with multiple domains
From: Avi Landy (alandy@hotmail.com)
Date: 11/10/02
- Next message: Rob Dob: "Re: NewBie ASP.NET on a PDC securiy sugestions"
- Previous message: Helen Warn: "Re: What entity is used for Authorization?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: alandy@hotmail.com (Avi Landy) Date: 10 Nov 2002 13:37:49 -0800
I'm having this really crazy problem. I made a site,
online.mysite.co.il, to which a user has to log on using
FormsAuthentication. When logging on, the user receives a session (not
persistant) cookie. One of the things a user can do, is Logout, which
removes the cookie. This is all fine.
now, we are integrating this site with a site called www.mysite.co.il,
which has the same interface, menus, look and feel of the online site,
except that thi site doesn't need authentication. Now, one of the
ideas of the integration was, that if i'm logged in on the online
site, i will be able to see that status also on the www site. I had a
problem originaly, that the www site didn't see the cookie. I fixed
that by setting the domain of the formsauthentication cookie to
"mysite.co.il" This allowed the www site to read the cookie. Now,
here's the weird part. As soon as i set the domain of the cookie like
that, i can't logout. FormsAuthentication.SignOut doesn't work,
Cookies.remove doesn't work, I can't change the domain after i create
the cookie, in short the only way to get rid of this cookie is to
close the browser.
Thinking this whole thing is really weird, i did the following on my
personal computer:
I made a web site that contains:
a page that makes a ticket automatically
a page that does a logout, after which redirects to a page that says:
Response.Write User.isAuthneticated
if the domain is left alone (to the default value), when i get to the
last page, it says false. as soon as i set the domain of the cookie to
mysite.co.il, the page always says true (and in debug, i see the
cookie)
Does anyone have any ideas?
Thank you,
Avi
- Next message: Rob Dob: "Re: NewBie ASP.NET on a PDC securiy sugestions"
- Previous message: Helen Warn: "Re: What entity is used for Authorization?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|