Sharing cookies across different domains and different applications (classic ASP and ASP.NET)

本小妞迷上赌 提交于 2019-12-17 09:57:38

问题


Is there a way to share cookies across different domains and different applications (classic ASP and ASP.NET)


回答1:


No, there isn't.

The issue is the cross domain one, rather than the asp.net/classic asp and is security reasons.

If the domains are subdomains you can share the cookies, provided you use a cookie path that both can access (ie. for the domain sub.example.com you can read and write cookies using the example.com domain).




回答2:


You can share cookies via some behind the scenes communication between servers, or through querystrings.

Both are ill advised, unless the information in the cookies is harmless (but be aware that harmless looking data quite often isn't actually harmless).

Native support for accessing cookies is not possible cross domain, and probably will never be for security reasons.




回答3:


you can use cookie convertor which save all the cookies in the share database and try to recreate them again.



来源:https://stackoverflow.com/questions/4781353/sharing-cookies-across-different-domains-and-different-applications-classic-asp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!