Thanks.
Except Microsoft Passport, can Cookies do it?
..Net Framework has HttpCookie Class, it has Domain property.
But, I don't know how to use it.
I tested as following:
A machine:
------------------------------------------------------------
a1 web page:
HttpCookie cookie1=new HttpCookie("a", "1");
Response.Cookies.Add(cookie1);
Response.Write("a=" + Request.Cookies["a"].Value + "<br>"); //it can get
a's value
HttpCookie cookie2=new HttpCookie("b", "2");
cookie2.Domain="www.ABC.com"; //www.ABC.com is domain name
Response.Cookies.Add(cookie2);
------------------------------------------------------------
a2 web page:
Response.Write("a=" + Request.Cookies["a"].Value); //link from a1 web page,
it can get a's value
------------------------------------------------------------
B machine (domain name is
www.ABC.com):
------------------------------------------------------------
b1 web page: //link from a1 web page, it displays null, not b's value.
if(Request.Cookies["b"] == null)
Response.Write("null");
else
Response.Write("b=" + Request.Cookies["b"].Value);
------------------------------------------------------------
How to do this?
Thanks.
"Nicholas Paldino [.NET/C# MVP]" wrote:
Grace,
The only way I know how to do this currently is if all of the sites use
Passport. Trying to do it on your own would be a little difficult, to say
the least. There is an SDK out for it, I believe, which you can find on the
MSDN website.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Grace" <Gr***@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com... Are there any ways it can let users only login once and users can browse
different ASP.Net/ASP web applications on different machines?
ex:
A machine: login web application, a web application
B machine: b web application
C machine: c web application
Users only login on A machine, they don't login again and they can use a,
b
and c web applications.
How to do it?
Thanks.