Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
ServiceNow session timeout not triggering expected UI warning or message when SAML enabled - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • ServiceNow session timeout not triggering expected UI warning or message when SAML enabled
KB0552056

ServiceNow session timeout not triggering expected UI warning or message when SAML enabled


27521 Views Last updated : Mar 2, 2024 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

The base system uses a default Apache session timeout of 30 minutes. After 30 minutes of inactivity in the application, the platform logs the user out automatically, unless the Remember Me option in the login screen is selected. When a session expires, the user receives the following warning: "Your session has expired. Click OK to log in again."

Cause

Following is the timeout scenario that occurs when ServiceNow is configured with SAML:

  1. Session timeout terminates the user session on instance - does not affect the IdP.
  2. Instance attempts to re-establish the session by making a SAMLRequest to the IdP.
  3. If the user session is not terminated at the IdP, it redirects back to the instance without showing a username/password prompt.
  4. If the user session is terminated at the IdP, it displays the IdPs login screen.

For the above timeout scenario, setting the IdP timeout property to a value that is slightly less than the ServiceNow timeout, allows users to see the IdP's login screen.

Resolution

In order to see the login page of the IdP when the SN session expires, configure the IdP session to expire *before* the SN session does.

Related Links

ServiceNow default Apache session timeout can be overwritten by doing either of the following:

  • Adding the glide.ui.session_timeout system property (for more information, see Modifying Session Timeout)
  • Installation Exit customizations for SAM instances (for more information, see Login Modifications in Installations Exits)

After customizing the ServiceNow session timeout on a SAML-enabled instance, users do not receive any type of warning. The screen does not respond and there is no change in the UI. In some cases, users receive a blank white page in the main content frame or a browser error about not being able to display the content for that frame.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.