After updating SharePoint On-Premisue with ADFS some users can't work because of old Auth-Cookie (MSIS7042)

Benjamin Freitag 101 Reputation points
2020-08-14T13:17:17.53+00:00

We already made a few updates from SharePoint 2013 to 2016 or 2019 successfully. When using ADFS-Authentication and preserving the same SiteCollection-URL on the new SharePoint Server, some users may still have an Authentication-Cookie for the URL but they can't work anymore with the new SharePoint until they logout from ADFS and login again (either via Logout-Link https://adfsurl/adfs/ls/?wa=wsignout1.0 or by deleting all Browser-Cookies). The detailed error in ADFS is: Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042: The same client browser session has made '6' requests in the last '1' seconds.

We never expecience such issues in production since years, but just when updating/moving the SiteCollection to a new SharePoint server. So I think this is not a general configuration-issue but has to do with the actual SharePoint-Server-Upgrade and outdated/obsolete user-cookies.

What can we do to prevent this issue when performing a SharePoint-Update?

Microsoft 365 and Office SharePoint Server For business
Microsoft Security Active Directory Federation Services
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2020-08-17T09:28:31.95+00:00

    This issue is more related to lifetime of tokens. You could change the LogonTokenCacheExpirationWindow to be less than the SAML TokenLifetime by the PowerShell command.

    $sts = Get-SPSecurityTokenServiceConfig
    $sts.LogonTokenCacheExpirationWindow = (New-TimeSpan –minutes 1)
    $sts.Update()
    iisreset
    

    For more detailed information, you could refer to the article below.

    The same client browser session has made '6' requests in the last '11' seconds.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.