在同一个域中的IIS应用程序之间共享认证

在同一个域中的IIS应用程序之间共享认证

问题描述:

我对www.example.com

I have an IIS website on www.example.com

在www.example.com/demo /

and a virtual directory at www.example.com/demo/

我如何使用身份验证cookie www.example.com在我的虚拟目录?

How can I use the authentication cookie from www.example.com in my virtual directory?

在同一个域共享的饼干,甚至是应用程序之间共享。
我已经使用了相同的cookie没有问题,分享一个经典的ASP应用程序和.net应用程序之间的认证。

The cookies are shared in the same domain, even shared between applications. I have used the same cookie to share authentication between a Classic ASP app and a .net app without problems.

只要使用相同的规则进行加密或存储的cookie。

Just use the same rules to encrypt or store the cookie.