简体   繁体   English

ASP MVC基于声明的(ADFS)不活动问题

[英]ASP MVC Claim Based (ADFS) inactivity problems

I use a claim based authentication for my ASP MVC web application. 我对ASP MVC Web应用程序使用基于声明的身份验证。 It's working well, but after a while (some minutes of inactivity) I received a blank page with nothing. 它工作正常,但是过了一会儿(几分钟不活动),我收到了空白的空白页面。 Worst, I can't access to the authenticate page ... 最糟糕的是,我无法访问身份验证页面...

So I think there is a timeout problem ? 所以我认为有超时问题吗? If I go to the cookies panel with Chrome and delete the cookie named FedAuth, everything back to the normal and instead of the blank page I can access to my app ... 如果我使用Chrome浏览器进入Cookie面板并删除名为FedAuth的Cookie,则一切恢复正常,而不是空白页面,我可以访问我的应用...

I check the event viewer for ADFS and IIS and there is no error, everything seems ok. 我检查了事件查看器中的ADFS和IIS,并且没有错误,一切似乎都正常。 Can someone have an idea ? 有人可以有个主意吗?

Thanks! 谢谢!

I'm wondering, if ADFS cookies it's related to IIS session timeout ? 我想知道,ADFS cookie是否与IIS会话超时有关? And also I jusck check the ADFS TokenLifeTime, the value is 480 minutes. 我也想检查一下ADFS TokenLifeTime,该值是480分钟。

After lot of search, it seems that the problem is related to IIS cookie settings, specially the time-out settings (by default 20 minutes). 经过大量搜索后,似乎该问题与IIS cookie设置有关,尤其是超时设置(默认为20分钟)。

I change this value and increase it to 60 minutes for my test and in the ADFS side, I put the value none for ExtendedProtectionTokenCheckand. 我更改此值并将其增加到60分钟以进行测试,在ADFS端,我将ExtendedProtectionTokenCheckand的值设置为none。 I didn't receive the blank page during the first 60 minutes. 在最初的60分钟内,我没有收到空白页。 But strangely for iOS and MacOS devices, the problem is always there. 但是奇怪的是,对于iOS和MacOS设备,问题始终存在。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM