Hi ,
Welcome to the Support Portal. How can we help?
Follow

Workspace sign-in timeout

Table of Contents

 

Introduction

You will normally be active for 72 hours in Workspace (2 weeks if you select "Keep me signed in"). You can change the expiration time for Azure and Workspace.

Make sure you set "Workspace .FormAuth" longer than "AccessTokenLifeTime" so these never have the same expiration period. This allows them to refresh each other.

Azure_expires.png

Back to top


Setup Azure AD expiration time

To change the token lifetime policy:

  • Download the Azure AD PowerShell Module.
  • Run Windows PowerShell as an Administrator.
  • Run the command "Install-Module -Name AzureADPreview" to download the Azure AD PowerShell Module.
    PS C:\Windows\system32> Install-Module -Name AzureADPreview
  • Run the command "Connect-AzureAD -Confirm" and login with your Workspace Primary Admin account.
PS C:\Windows\system32> Connect-AzureAD -Confirm
  • Then, run the command below. This will set the Token Lifetime to 1 day (24 hours).
  new-azureadpolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"01:00:00","MaxAgeSessionSingleFactor":"23:59:00"}}')
  -DisplayName PartnerNameTest -Type TokenLifetimePolicy

Back to top

Setup Workspace sign-in cookie expiration time

By default the Sign in Cookie Expiration time is 24 hours. We advise only to change these settings during non-production hours

To change the Expiration token:

  • Go to the Workspace root.
  • Open Web.Config and find the following token.
            <!-- 1400 is 1 day, it's a sliding expiration though -->
    <forms name=".FormAuth" timeout="1440" slidingExpiration="true" cookieless="UseCookies" requireSSL="true" />
  • Set up "timeout="1440"" to the limit you want.
  • Save the config.

Be aware that you have to re-do this after an update, we will add this to our update process as soon as possible, expected from update V2.75.0.

Back to top