SAP Knowledge Base Article - Public

3846262 - Unexpected Session Logout or HTTP 401 Errors After Inactivity in Microsoft Edge

Symptom

  • Users are unexpectedly logged out or lose the ability to work with SAP Cloud for Customer after a period of inactivity when using Microsoft Edge.
  • The issue does not occur in Google Chrome.
  • The issue may occur after approximately 30 minutes of inactivity, which is significantly earlier than the session timeout values configured in both SAP Cloud for Customer (C4C) and the Identity Provider (IdP).

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Open SAP Cloud for Customer in Microsoft Edge.
  2. Log in to C4C.
  3. Open one or more objects (for example, Opportunity, Lead, Ticket).
  4. Leave the C4C browser tab open without actively using it for some time.
  5. Return to the C4C tab after the period of inactivity.
  6. Observe one of the following:
    1. Automatic logout and redirection to the login page.
    2. Session appears active, but objects cannot be opened and HTTP 401 responses are observed.

Cause

In Microsoft Edge, the Sleeping Tabs (and related resource management such as Efficiency mode) can suspend inactive tabs, pausing activities like JavaScript execution; when the tab resumes, session-related operations can fail, leading to logout or HTTP 401 despite server timeouts being higher.

Resolution

  1. Open Microsoft Edge and go to edge://settings/system.
  2. In System and performance, disable “Put inactive tabs to sleep” (or set a significantly longer inactivity threshold).
  3. If enabled, temporarily disable “Efficiency mode” for testing.
  4. Open SAP Cloud for Customer and keep the application running in the background.
  5. Leave the C4C tab inactive for more than 30 minutes.
  6. Return to the application and verify whether the unexpected logout or HTTP 401 still occurs.
  7. If the issue no longer occurs, keep the adjusted settings as a mitigation and monitor.

See Also

Keywords

Microsoft Edge, sleeping tabs, efficiency mode, unexpected logout, session loss, inactivity, HTTP 401, C4C, SAP Cloud for Customer, browser tab suspension, auto sign out, session timeout, background tab, redirect to login, object open error , KBA , AP-RC-UIF , C4C UI Framework , Problem

Product

SAP Cloud for Customer core applications all versions