【发布时间】:2013-08-06 08:53:58
【问题描述】:
我的 Web 应用程序使用表单身份验证。它工作正常。但是,当我将同一应用程序的 2 个实例安装为虚拟目录时,我可以使用相同的 cookie 登录到这两个实例。有没有办法将它保存到单个虚拟目录中?
这是我的 web.config。
<authentication mode="Forms">
<forms name="MyAppAuth" loginUrl="~/secured/login" protection="All" timeout="30" slidingExpiration="true" path="/">
<credentials passwordFormat="Clear">>
</credentials>
</forms>
</authentication>
【问题讨论】:
标签: authentication iis cookies web-config