如何共享单asp.net网站的多个域之间的会话? [英] How to share session among Multiple Domains on single asp.net website?
问题描述
我想分享域之间的会话cookie。
我有一个以上的域: -
I have more than one domain: -
1. mydomain.com
2. mydomain.fr
3. mydomain.de
4. mydomain.da
...and many other language based
现在,我已经在服务器上部署单一的网站。 我要单一网站上的不同域之间共享会话。我如何做到这一点?
Now, I have single website deployed on a server. I want to share session among the different domains on the single website. How do I achieve this?
我在网络&LT找到
,但它与子域的工作(如测试。 mydomain.com
和 secure.mydomain.com
),但不能为不同的域。
I found on web <httpCookies domain=".mydomain.com" />
but it work with sub domains (like test.mydomain.com
and secure.mydomain.com
) but not for the different domains.
我也试过&LT; httpCookies域=。MYDOMAIN。 /方式&gt;
但本次会议不辍
I also tried <httpCookies domain=".mydomain." />
but by this session stopped working.
谁能帮帮我好吗?
推荐答案
您不能具有不同的顶级域名名称。
You can't share cookies on domains that have different top level domain name.
这是唯一可能与子域。
mydomain.com
fr.mydomain.com
de.mydomain.com
da.mydomain.com
...
这篇关于如何共享单asp.net网站的多个域之间的会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!