none
Configure SharePoint 2013 and AD FS Service, to make the SharePoint Server token expire 20 minutes without any operation.

    Question

  • Dear Expert,

    Thank you very much for your help.

    I need to configure a SharePoint Server with AD FS or form base authentication to achieve the following functions:

    1. The token will expire when there wasn’t have any operation on SharePoint Page in 20 minutes.

    2. The token will expire when Client Computer close the browser or dispose the session.

    I have 4 Servers (Windows Server 2012 R2 Data-center). SharePoint 2013 SP1 CU 2017.1.

    Could you teach me how to do that please, thanks a lot.

    Caspar Cui


    Monday, March 13, 2017 2:32 PM

All replies

  • Hi Caspar Cui,

    The default behavior for SharePoint is to use persistent session cookies. This enables a user to close the browser, re-open the browser, and re-visit a SharePoint web application without signing in again. Adatum wants users to always re-authenticate if they close the browser and then re-open it and revisit the a-Portal web application. To enforce this behavior, Adatum configured SharePoint to use an in-memory instead of a persistent session cookie. You can use the following PowerShell script to do this.

    $sts = Get-SPSecurityTokenServiceConfig
    
    $sts.UseSessionCookies = $true
    
    $sts.Update()
    
    Iisreset


    Read this article for more details.

    We can enable session state for the application. By default, the session expires when the user has not requested or refreshed a page in the ASP application for 20 minutes.

    Information about configuring Session Time-out:

    https://technet.microsoft.com/en-us/library/cc725820(v=ws.10).aspx

    Best regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, March 14, 2017 10:11 AM
    Moderator
  • Thank you for your reply.

    Tuesday, March 14, 2017 12:24 PM
  • Hi Caspar Cui,

    Does the information answer your “Session Time-out” question?

    If the issue was resolved, you can mark the helpful post as answer to help other community members find the helpful information quickly.

    Best regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Monday, March 20, 2017 2:30 AM
    Moderator