如何使用 W.I.F/SAML 令牌/FedAuth cookie 增加会话超时 [英] How do I increase session timeout with W.I.F / SAML tokens / FedAuth cookie

查看:29
本文介绍了如何使用 W.I.F/SAML 令牌/FedAuth cookie 增加会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为默认超时时间是每半小时一次.

I think the default timeout is something like every half hour.

我想将其更改为 2 周.有人有什么想法吗?

I'd like to change this to 2 weeks. Anyone got any ideas?

这通常是从 STS 端还是客户端完成?表单身份验证是否也受到了阻碍,还是现在无关紧要?

Is this done usually from the STS side or the client side? Is forms authentication getting in the way too, or is that now irrelevant?

推荐答案

我自己刚刚解决了这个问题,需要在 RP 上启用persistentCookiesOnPassiveRedirects

I just fixed this myself, persistentCookiesOnPassiveRedirects needs to be enabled on the RP

在您的 web.config 中,您需要:

In your web.config you need:

<microsoft.identityModel>
      <federatedAuthentication>
        <wsFederation
            persistentCookiesOnPassiveRedirects="true" />
        <cookieHandler 
          persistentSessionLifetime="60.0:0:0" />
      </federatedAuthentication>
</microsoft.identityModel>

这篇关于如何使用 W.I.F/SAML 令牌/FedAuth cookie 增加会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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