asp.net-mvc - 如何设置持久身份验证 :true in IIS and what is the use of it?

标签 asp.net-mvc asp.net-mvc-4 iis asp.net-web-api asp.net-web-api2

我正处于 WEB API 的学习阶段,我只想知道如何为我的服务响应将持久身份验证设置为 true ,这样做有什么好处?

最佳答案

对于 IIS 7.x,设置为:authPersistSingleRequest。将此标志设置为 True 指定仅对连接上的单个请求保留身份验证。 IIS 在每个请求结束时重置身份验证,并强制在 session 的下一个请求时重新进行身份验证。默认值为 False。

欲了解更多信息: https://learn.microsoft.com/en-us/iis/configuration/system.webServer/security/authentication/windowsAuthentication/

关于asp.net-mvc - 如何设置持久身份验证 :true in IIS and what is the use of it?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32018752/

相关文章:

asp.net-mvc - 强大的自托管服务器的最佳选择 : WCF vs. ASP.NET Web Api

jquery - Html.ActionLink : div as target

c# - 验证错误 : The value 'on' is not valid for <<property name>>

asp.net-mvc - .NET WebApi 在操作前点击处理

c# - IIS 上 ASP.NET 页面的 Restful URL

.net - 从 NHibernate 生成数据库模式脚本

asp.net-mvc - 更改特定表单的验证设置

c# - AJAX 请求加载的部分 View -MVC

Silverlight 托管查询

asp.net - 丢失 session 状态