Session limits in ServiceNow hardening settings decide how long a signed-in session, a guest visit or an integration connection can stay open, how many interactive sessions one user may hold, and when a timed-out session is removed. In the Brazil release these controls are system properties and one plugin, each with a default and a recommended value listed below.
Where session lifespan sits next to idle timeout
Idle logout and session lifespan are separate controls. The idle timeout ends a session after a stretch with no activity. A lifespan ends it after a fixed time since the session began, even while the person is still working. The idle setting is covered on its own page, so this page focuses on the limits that sit on top of it. A lifespan set below the idle timeout is raised to match it, and the platform writes a warning to the log when that happens.
Limiting how long signed-in UI sessions live
The property glide.ui.active.session.life_span sets a maximum lifespan, in minutes, for signed-in sessions opened through the user interface. In the Brazil release the default is 0, which disables the limit, and the recommended range is 1 to 720 minutes.
At expiry the platform logs the user out, clears the session cookies and invalidates the session. The person must sign in again, even if they were working when the clock ran out. The risk is rated medium, with a severity score of 4.2, because a longer lifespan gives someone holding a stolen session more time to use it.
Remember Me cookie limits
Users who tick Remember Me at sign-in receive a cookie that outlives the session. Two properties govern that cookie.
Setting the rolling life of the Remember Me cookie
glide.ui.user_cookie.life_span_in_days sets how long the cookie lasts after each successful sign-in. The default is 15 days, the recommended value is 15 or less, and the maximum cap is 30 days. A stolen cookie works for as long as this window stays open, so a shorter value narrows the exposure. The risk is rated medium, with a severity score of 4.9.
Setting the absolute cap on Remember Me cookies
glide.ui.user_cookie.max_life_span_in_days sets a hard ceiling on the age of that cookie. The recommended value is 30 or less, and the fallback value is 30. Once the cookie reaches that age it is no longer rotated, and the person must sign in again. Login options that sit alongside Remember Me are compared on the authentication methods page.
Guest and integration session lifespans
Guest sessions belong to visitors who are not signed in. Integration sessions belong to integrations with low-privilege access. Each group has its own lifespan property, and each defaults to 0, which disables the limit.
These two groups expire differently from signed-in users. The session is invalidated silently and a new identifier is issued, so there is no logout screen. Any state held in the session, such as in-progress form data, embedded portal widget context or session-based rate limiting, starts fresh.
| Property | Who it covers | Default | Recommended | What happens at expiry |
|---|---|---|---|---|
| glide.ui.active.session.life_span | Signed-in UI users | 0 | 1 to 720 minutes | User is logged out and must sign in again |
| glide.guest.active.session.life_span | Unauthenticated guests | 0 | 720 minutes | Session replaced silently with a new identifier |
| glide.integrations.active.session.life_span | Low-privilege integrations | 0 | 1 to 720 minutes | Session replaced silently with a new identifier |
A guest on an idle tab may need to reload the page after expiry. As with signed-in users, each lifespan must sit at or above its idle partner, glide.guest.session_timeout or glide.integration.session_timeout, and is raised with a warning if it is lower.
Forcing invalidation at the moment a session expires
The property glide.active.session.timeout.invalidate.session decides whether the application invalidates a timed-out session itself, before the Tomcat container processes it. Its default is false and its recommended value is true. While it is false, a timed-out session can still be used for a brief interval before the container removes it. That gap is rated medium, with a severity score of 4.6. The length of that gap depends on the three lifespan properties, so set it alongside them. Turn it on alongside them.
Capping concurrent interactive sessions
Enabling the Limit Concurrent Sessions plugin
The Limit Concurrent Sessions plugin, com.glide.limit.concurrent.sessions, limits how many active sessions a user or role can hold open. Its recommended state is enabled, and its default is none, so nothing is enforced until it is turned on and configured. Check the type of glide.authenticate.limit.concurrent.interactive.sessions in the System Properties list before editing it. If it is a true/false switch, set it to true. If it is an integer, set it to 1, the recommended count. Then set glide.authenticate.max.concurrent.interactive.sessions to the number of sessions the organisation needs.
Choosing the number of interactive sessions
The recommended count is 1. Each extra open session is another route for an attacker to use an account, which is why the risk is rated low, with a severity score of 3.7. People who work across several devices are likely to hit a limit of 1 first, so set the count with them in mind.
Counting sessions across all nodes
glide.authenticate.limit.concurrent.sessions.across.all.nodes tracks sessions across all application nodes when it is set to true. The recommended value is true, and the fallback value is true. Check the default on the instance. If it is not true, the count applies to a single node, so a user can hold more sessions across the platform than the cap intends.
Other hardening settings that shape session risk
Rotating session identifiers
glide.ui.rotate_sessions changes the HTTP session identifier when a user moves from an unauthenticated page to an authenticated one. The recommended value is true, and the fallback value is true. Its severity score of 8.8 is the highest on this page, because a reused identifier can be taken over. A proxy or a hard-coded identifier can disrupt functionality, and with the SAML 2.0 plugin the property may need to be set to false.
High assurance session length
glide.zta.high_assurance.session.timeout sets, in minutes, when a high assurance session must re-authenticate. It accepts 1 to 480, the base value is 30, and the recommended value is 30 or lower. It belongs to the Zero Trust – Continuous Authentication plugin, com.snc.zero_trust_continuous_authentication, and carries a CVSS score of 3.3.
OAuth tokens and session cookies
When an OAuth access token is issued, the response carries a cookie that can extend a session past the token’s expiry. The property glide.authenticate.oauth.post.token.expiration.cookie_auth.disabled stops that. Its default and recommended value are true, and its fallback is false, so confirm the value on the instance. With it set to true, sessions end when the access token expires, and clients need a refresh token or a fresh sign-in. Legacy cookie-based clients and long jobs without token renewal may start receiving 401 errors. The risk is rated medium, with a severity score of 6.8.
Mobile refresh token interval
glide.authenticate.session_access.mobile.refresh_token_interval sets, in seconds, how long a mobile user stays signed in before re-authenticating. The default and recommended value is 1800 seconds, or 30 minutes, and the recommended setting is 1800 or below. It applies when the session access policy has identity provider attributes configured and the user signs in through single sign-on.
Exempting roles from active session timeouts
glide.active.session.timeout.exception.roles lists, comma-separated, the roles exempt from active session timeouts. The default list is edge_encryption, mid_server and maint. Keep exemptions to internal integration account roles, because an exempt session can keep authenticating without a time limit. The risk is rated medium, with a severity score of 6.4. Before granting an exemption, review how roles control data access in the role-based access guide.
A sensible order for changing session settings
- Confirm the idle timeout value, so each lifespan sits at or above it.
- Set the signed-in UI lifespan between 1 and 720 minutes, and check the log for warnings about raised lifespans.
- Set the guest lifespan to 720 minutes and the integration lifespan between 1 and 720 minutes.
- Turn on proactive invalidation.
- Set the Remember Me window to 15 days or less and the cookie cap to 30 days.
- Enable the concurrent session plugin, set the count, and confirm the across-all-nodes setting.
- Confirm the rotation, high assurance, OAuth cookie, mobile refresh and exception role values.
Test each change with a standard user and a guest session. Let the test session pass its limit and confirm the behaviour matches the table above. For a wider view of where access control settings go wrong, see the page on common access control mistakes. The other settings in this group are gathered in the instance security and access control guide.
Frequently asked questions
What is the difference between an idle timeout and a session lifespan?
An idle timeout ends a session after a period with no activity. A lifespan ends it after a fixed time, even if the person is still active. Set both, because a lifespan below the idle timeout is raised to match it.
What does a lifespan value of 0 mean?
It switches the lifespan limit off, so the session runs until the idle timeout ends it. In the Brazil release, all three lifespan properties default to 0.
Does a signed-in user lose access when the lifespan ends?
Yes. The user is logged out, the session cookies are cleared, and the user must sign in again, even if they were actively using the platform when the session expired.
Does the Remember Me setting limit how long a user stays signed in?
Yes, through two cookie properties: a 15-day window after each sign-in and a 30-day absolute cap, both defaults. Neither one replaces the active session lifespan.
Can an integration role skip active session timeouts?
Yes, through the exception roles property, whose default list is edge_encryption, mid_server and maint. Limit exemptions to internal integration account roles, since an exempt session can keep authenticating without a time limit.