在同一个域中的IIS应用程序之间共享认证 [英] Sharing authentication between IIS applications on same domain

查看:162
本文介绍了在同一个域中的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.

这篇关于在同一个域中的IIS应用程序之间共享认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆