RMC Digital Logo
Sitecore,  Content Hub

Improving the Sitecore Content Hub Authoring Experience

Author

Roberto Armas

Date Published

Stop Logging Out Active Users

When we talk about improving the authoring experience in Sitecore Content Hub, we often think about page configuration, search, metadata, workflows, or custom components.

But sometimes the biggest improvements come from very small configuration changes.

One example is session expiration.

Have you ever been actively working in Content Hub, editing assets or updating metadata, only to suddenly be asked to authenticate again?

It can become frustrating very quickly.

And while security absolutely matters, good security configuration does not necessarily mean creating unnecessary friction for users who are actively working in the platform.

The problem: session expiration interrupts authors

Content Hub uses an authentication cookie to maintain the authenticated user's session.

The ExpireTimeSpan setting controls, in minutes, how long that authentication cookie remains valid.

For example:

"ExpireTimeSpan": 30

means that the authentication cookie has a 30-minute expiration window.

A relatively short expiration period can make sense from a security perspective, particularly when users leave their computers unattended.

But there is an important distinction between:

a user who has been inactive for 30 minutes

and

a user who has been actively working in Content Hub for 30 minutes.

From an authoring-experience perspective, those situations should not necessarily be treated the same way.

Enter SlidingExpiration

Content Hub provides another authentication option:

"SlidingExpiration": true

When SlidingExpiration is enabled, the authentication cookie can receive a new expiration time while the user continues making requests to Content Hub.

Sitecore describes the behavior as renewing the authentication cookie when a request is processed after more than half of the configured expiration period has elapsed.

For authors, the practical result is simple:

If I am actively working in Content Hub, why should I have to authenticate again?

That is exactly the type of friction we should try to remove.

A more author-friendly configuration

A configuration could look like this:

{
"ExpireTimeSpan": 60,
"SlidingExpiration": true
}

Here we are doing two things.

First, we are defining a longer authentication window.

Second—and more importantly—we are allowing that expiration window to move forward while the author remains active.

For many Content Hub implementations, this can provide a much smoother authoring experience without simply creating an unlimited session.

The right expiration value should, of course, be agreed upon with your organization's security team. Sitecore currently supports an ExpireTimeSpan of up to 1,440 minutes (24 hours).

The goal is not to disable security.

The goal is to configure security appropriately for the way people actually use the platform.

How to configure it in Content Hub

You can manage these settings directly from Content Hub.

Navigate to:

Manage → Settings → Authentication

You need to be a superuser or have the appropriate permissions to modify the configuration.

Inside the Authentication configuration, locate properties such as:

"ExpireTimeSpan": 60,
"SlidingExpiration": true

Update the values according to your organization's requirements and save the configuration.

Why this matters

When designing Content Hub solutions, we sometimes spend a lot of time improving major workflows while overlooking smaller interruptions.

But authoring experience is cumulative.

An author might:

  • upload assets,
  • edit metadata,
  • manage relations,
  • search for content,
  • review assets,
  • participate in workflows,
  • switch between different Content Hub pages.

Having to unexpectedly sign in again in the middle of that work creates unnecessary friction.

A configuration such as SlidingExpiration may seem small from an implementation perspective, but it can have a noticeable impact on the daily experience of Content Hub users.

Security and authoring experience are not opposites

There is an important principle here.

Improving authoring experience does not mean weakening security.

Instead, we should distinguish between reasonable security controls and controls that unnecessarily interrupt legitimate user activity.

For example:

  • Keep an expiration policy.
  • Define an expiration duration appropriate for your organization.
  • Allow inactive sessions to expire.
  • Consider allowing active sessions to continue through sliding expiration.
  • Align the final configuration with your organization's security requirements.

The result is a better balance between security and usability.

A small configuration with a big UX impact

Content Hub implementations are not only about schemas, APIs, DAM architecture, and integrations.

We are also building a working environment for content authors.

Sometimes improving that environment requires custom development.

Sometimes it requires redesigning a workflow.

And sometimes it is simply:

"SlidingExpiration": true

Small configuration decisions can make a surprisingly large difference.


This is part of my Sitecore Content Hub Authoring Experience Best Practices series, where I'll explore practical configuration and implementation techniques that can make Content Hub easier and more productive for authors.