Symptom
Once an admin access a curriculum's cover page, the system automatically logs out.
Error seen: There is no valid user session or the session has timed out. Please login again.
Environment
SAP SuccessFactors Learning
Reproducing the Issue
- Access the system
- Navigate to Learning Admin side
- Access one of the affected curriculas
- Go to Actions > Cover Page
- Perform any other action and get a session termination message.
Cause
Essentially, the issue arises because the use of an iFrame in your HTML source code is causing a new user session to be established whenever certain Curricula cover pages are accessed. Here's a simplified breakdown:
The Problem
- iFrame and Direct Links: The iFrame element, with its 'src' attribute, is making a call to a direct link that establishes a new user session.
- Session Conflict: When an admin session is active and a new user session is initiated, it leads to the termination of the admin session because the system cannot handle both sessions concurrently.
The Root Cause
- Eager Rendering: The iFrame element's nature of 'eager-rendering' means it makes the request to the direct link as soon as the page is loaded, leading to the creation of a new user session.
- Direct Links Behavior: The direct link used in the iFrame aims to establish a user session, which is the normal behavior for user-specific links.
Resolution
The Solution
- Avoid Eager Rendering: Instead of using elements like iFrames that automatically make requests, use action-based HTML elements like buttons. This way, the direct link is only accessed upon user interaction, preventing automatic new session creation.
- In case that assistance is required to adjust the HTML code, we recommend the engagement of a partner or an HTML skilled developer as the SAP Support area of scope is limited to the Learning product issues.
Summary
By changing the HTML elements from iFrame to buttons or other user-interaction elements, you can control when the direct link is actually followed and prevent the automatic establishment of a new user session, thus preserving the admin session. This approach ensures that sessions do not conflict with each other, maintaining the integrity of the admin session while still providing access to the direct links as needed.
Keywords
Curriculum, item, Cover Page, session, terminated, There is no valid user session or the session has timed out, Please login again, , KBA , LOD-SF-LMS-CUR , Curricula , LOD-SF-LMS-ADM , System Admin, Global Variables, References , Problem
SAP Knowledge Base Article - Public