【发布时间】:2016-10-05 08:12:10
【问题描述】:
我知道如何使用 asp.net 配置 Windows 身份验证 我的要求是,一旦网页加载,它应该重定向到登录页面,在登录页面中我需要输入 Windows 凭据,然后它应该使用 Windows 身份验证方法进行验证并将我重定向到原始页面。 谁能帮我怎么做?
【问题讨论】:
标签: c# asp.net authentication windows-authentication form-authentication
我知道如何使用 asp.net 配置 Windows 身份验证 我的要求是,一旦网页加载,它应该重定向到登录页面,在登录页面中我需要输入 Windows 凭据,然后它应该使用 Windows 身份验证方法进行验证并将我重定向到原始页面。 谁能帮我怎么做?
【问题讨论】:
标签: c# asp.net authentication windows-authentication form-authentication
在 web.config 中添加以下代码行
<system.web>
<authentication mode="Forms">
<forms defaultUrl="indexpagename.aspx" loginUrl="Login.aspx" slidingExpiration="true" timeout="2880"></forms>
</authentication>
</system.web>
【讨论】: