Forum Discussion

Renate Zillger's avatar
Renate Zillger
Copper Contributor
Oct 02, 2019

SharePoint 2016: Users forced to re-authenticate unexpectedly

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"
}
Get-SPSecurityTokenServiceConfig
$mysts = Get-SPSecurityTokenServiceConfig
#$mysts.WindowsTokenLifetime = (New-TimeSpan -Minutes 20)
#$mysts.LogonTokenCacheExpirationWindow = (New-TimeSpan -Minutes 19)
#$mysts.Update()

#Set-SPSecurityTokenServiceConfig -ServiceTokenLifetime 1000

 

  • SinhaKislay's avatar
    SinhaKislay
    Iron Contributor

    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?

Resources