--- title: "Replacing the Session Expiration Warning" slug: "s3suite94-replacing-the-session-expiration-warning" updated: 2026-10-27T18:41:54Z published: 2026-10-27T18:41:54Z canonical: "docs.onespan.com/s3suite94-replacing-the-session-expiration-warning" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Replacing the Session Expiration Warning The App SDK's session manager provides a default UI that warns the user when their session is about to expire. If your application [deploys the session manager](/dpoa/docs/s3suite94-web-using-the-app-sdk#managing-session-renewal-and-expiration-time), then NNLSessionManager displays this dialog when the session is about to expire. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/image8(13).png?sv=2026-02-06&spr=https&st=2026-10-29T03%3A56%3A53Z&se=2026-10-29T04%3A56%3A53Z&sr=c&sp=r&sig=%2BDL%2BV4h5HWZlwGBocZdce14ZYJ2EyGdtN2KDN2D64aY%3D) To replace this warning dialog, implement the ISessionReminderUI interface. ```javascript // ISessionReminderUI implementation displays the session reminder modal // dialog with the countdown of the remaining time. var SampleSessionReminderUI = function() {        this.openUI = function(remainingTime) {             return new Promise(function(resolve, reject) {             // Present the reminder UI with remaining time, start countdown timer.             // Call resolve() when the user chooses to Stay Logged In.             // Call reject() when countdown reaches 0 or user chooses to Logout Now.             });        };        this.cancel = function() {             // Stop the timer and hide the UI.        }; } ``` Then set the new warning dialog as the one the SDK should display when the session is about to expire. ```javascript SessionReminderUIFactory.setSessionReminderUI(new SampleSessionReminderUI()); ``` #### Working Example in Tutorial Web App - Refer to the SampleSessionReminderUI in the file js/samples.js.