New Modules:
SessionTimeoutAlert_Lib:
SessionTimeout_Start: Main component responsible for session management, intercepting backend calls and controlling session variables.
SessionTimeout_Callback: Listener component that listens for events from SessionTimeout_Start and triggers the corresponding events.
SessionTimeoutAlert_Pat:
To use the Session Timeout Alert Component, follow these steps:
Add Reference in Service Studio:
Incorporate into the Template Layout:
Configure Events:
The component invokes four main events that should be configured:
SessionLogoutEvent:
SessionRenewedEvent:
SessionTimeoutEvent:
TimeRemainingEvent:
CallbackTimeRemainingInRealtime
TRUE
TimeRemaining
FALSE
The component has seven input parameters that can be configured according to your needs:
TimeoutInSeconds:
isDebug:
console.log()
CallbackTimeRemainingInRealtime:
TimeRemainingEvent
PopupTitle:
PopupButtonKeep:
PopupButtonCancel:
ExtendedClass:
Note: This component is intended to improve the user experience by providing session expiration alerts. It should not be considered a security feature. Robust and sophisticated session control should be implemented server-side to ensure comprehensive application security.