Session timeout in SharePoint 2019

WT 61 Reputation points

We are trying force users to re-login after a predetermined interval on SharePoint 2019 using Claims authentication.

However, from what i read this is not possible. Would anyone be able to advice what other options is available to enforce this?


SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,844 questions
0 comments No comments
{count} votes

Accepted answer
  1. JoyZ 18,046 Reputation points

    Hi @WT ,

    Per my research, Sessions don't really time out if we are using Windows authentication which will re-validated automatically, and we could not set the session timeout.

    If you are using Forms Based authentication , please configure FormsTokenLifetime, LogonTokenCacheExpirationWindow, and CookieLifetime using Powershell:

    $sts = Get-SPSecurityTokenServiceConfig  
    $sts.FormsTokenLifetime = (New-TimeSpan -Minutes 30)  
    $sts.LogonTokenCacheExpirationWindow = (New-TimeSpan -Minutes 20)  
    $sts.CookieLifetime = (New-TimeSpan -Minutes 15)  

    For SAML based authentication, please refer to

    Similar issues for your reference:

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful