简体   繁体   English

Windows Identity Foundation安全令牌服务设置cookie超时

[英]Windows Identity Foundation Security Token Service setting cookie timeouts

I want to configure the timeout duration that is applied to the cookies that are created on relying party after a user logs in through the passive Security Token Service (STS). 我想配置在用户通过被动安全令牌服务(STS)登录后应用于依赖方创建的cookie的超时时间。 I believe I read somewhere this is defaulted to 14 minutes however I can't find where I read this any longer. 我相信我在某处阅读的内容默认为14分钟,但是我再也找不到该内容了。

I would like to up this to a more reasonable 35 minutes or so. 我想将其延长到更合理的35分钟左右。

Is the correct values to alter 是要更改的正确值

  <microsoft.identityModel>
    <service>      
      <federatedAuthentication>
        <cookieHandler requireSsl="true" persistentSessionLifetime="#VALUE#"  />
      </federatedAuthentication>
    </service>
   </microsoft.identityModel>

If this is the correct location, is the value in minutes? 如果位置正确,以分钟为单位的值吗? I can't seem to find any documentation on this anywhere. 我似乎在任何地方都找不到任何文档。

The description about persistentSessionLifetime in MSDN is not true. MSDN中有关persistentSessionLifetime的描述不正确。 For example, if you set it to 1.6:13:45.0, the cookie will expire after 30 hours (1 day + 6 hours) 13 minutes and 45 seconds +/- the maximumClockSkew from <identityConfiguration>. 例如,如果将其设置为1.6:13:45.0,则cookie将在30小时(1天+ 6小时),13分45秒+/- <identityConfiguration>中的maximumClockSkew之后过期。 So the description from MSDN should be like the one from TimeSpan: [-]d.hh:mm:ss.ff. 因此,来自MSDN的描述应该类似于来自TimeSpan的描述:[-] d.hh:mm:ss.ff。 I hope Microsoft changes the wrong description. 我希望微软更改错误的描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Identity Foundation安全令牌服务无法保持登录状态 - Windows Identity Foundation Security Token Service can't stay logged in Windows Identity Foundation:如何在ASP.net中获取新的安全令牌 - Windows Identity Foundation: How to get new security token in ASP.net Windows Identity Foundation:如何验证令牌的签名和有效期? - Windows Identity Foundation: How to validate a token for signature and expiry? 已弃用的“身份和访问控制”的安全令牌服务替换 - Security Token Service replacement for the deprecated “Identity and Access Control” ASP.Net 身份 2 与 windows 服务和 MVC,令牌问题 - ASP.Net identity 2 with windows service and MVC, Token issues 是否可以设置Windows Identity Foundation回发页面的样式? - Is it possible to style the Windows Identity Foundation postback page? Windows Identity Foundation /更新面板/错误401 - windows identity foundation / update panel / error 401 Windows身份基础仅适用于内部应用程序/网站? - Windows identity foundation only for internal apps/sites? 有关使用Windows Identity Foundation的联合身份验证的问题 - Question on Federated Authentication using Windows Identity Foundation 使用Windows Identity Foundation的自定义STS(.NET 4.5) - Custom STS with Windows Identity Foundation (.NET 4.5)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM