Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Configure mobile app session timeout

Configure mobile app session timeout

The native mobile app times out after a certain amount of inactivity. Sessions are considered active if the app is in the foreground or if the app is processing a long running task in the background. Administrators can configure the length of time it takes for the app to time out.

Before you begin

Role required: admin

About this task

The app is considered inactive in any of the following scenarios.
  • Explicitly sending the app to the background.
  • Locking the screen or having the screen go to sleep.
  • Switching to a different app.
Any of the following states are considered actively running:
  • The app is visible on the screen and the screen is unlocked.
  • The app is processing a long running task even if the app is in the background, such as uploading or downloading a large attachment.

The greater of all of the following settings determine mobile app session time-out.

Procedure

  1. Configure the OAuth entity for the mobile app.
    1. Navigate to System OAuth > Application Registry and open the ServiceNow Mobile App OAuth entity.
    2. In the Refresh Token Lifespan field, change the number in seconds to the amount of time the refresh token is valid.
    3. In the Access Token Lifespan field, change the number in seconds to the amount of time the access token is valid.
  2. Configure the web session time-out property.
    1. In the navigation filter, type sys_properties.list.
    2. Search for the glide.ui.session_timeout property.
    3. Change the value in minutes to the amount of time before a session times out.
      The default value is 30 minutes.
  3. Configure the integration session time-out property.
    1. In the navigation filter, type sys_properties.list.
    2. Search for the glide.integration.session_timeout property. If the property does not exist, create a system property .
    3. Configure the property with the following values.
      Field Description
      Name glide.integration.session_timeout
      Type integer
      Value Time in minutes it takes for the integration session to time out. If this value is undefined, the system defaults to 1 minute.

Result

For example, if you want the mobile app to sign out after 30 minutes of inactivity, use the following configuration.
Configuration point Setting
Refresh Token Lifespan for the ServiceNow mobile app 1800 seconds
Access Token Lifespan for the ServiceNow mobile app 1800 seconds
glide.ui.session_timeout system property 30 minutes
glide.integration.session_timeout system property Not defined, or 30 minutes or less.

What to do next

Sign out and sign back in to the mobile app. Otherwise the app uses the previously granted sessions and tokens.