Session timeout in SharePoint 2019

WT 61 Reputation points
2021-02-04T14:21:28.717+00:00

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?

Thanks.

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
    2021-02-05T08:32:17.657+00:00

    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)  
    $sts.Update()  
    iisreset  
    

    For SAML based authentication, please refer to https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/hh147183(v=office.14)

    Similar issues for your reference:

    https://sharepoint.stackexchange.com/questions/1178/session-time-out-for-windows-authentication

    https://social.technet.microsoft.com/Forums/office/en-US/2209247b-1063-4d0d-8058-4a979f690bb5/sharepoint-2013-forms-based-auth-idle-timeout-issue?forum=sharepointgeneral

    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