SharePoint 2016: Users forced to re-authenticate unexpectedly

Occasional Contributor

Users are being forced to reauthenticate. We have tried setting a few configurations via PowerShell that we read about online, but nothing seems to change this problem. 

Any tips would be greatly appreciated. If anyone has their settings so that people stay logged on for 8  hours or even longer, it wold be great to see what you have set.


Here is a script that we ran:

if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null)
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$mysts = Get-SPSecurityTokenServiceConfig
#$mysts.WindowsTokenLifetime = (New-TimeSpan -Minutes 20)
#$mysts.LogonTokenCacheExpirationWindow = (New-TimeSpan -Minutes 19)

#Set-SPSecurityTokenServiceConfig -ServiceTokenLifetime 1000


2 Replies

@Renate Zillger when you say reauthenticate do you mean they are asked for credentials? Does SSO work?

Also have you checked health of Distributed cache service?

Yes, they are asked for their credentials again.