--- title: "Replacing the session expiration warning for Web" slug: "dpo-replace-web-app-sdk-ui-for-the-session-expiration-warning" updated: 2026-10-27T20:13:31Z published: 2026-10-27T20:13:31Z canonical: "docs.onespan.com/dpo-replace-web-app-sdk-ui-for-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 for Web 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-1#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/image(240).png?sv=2026-02-06&spr=https&st=2026-10-29T02%3A10%3A07Z&se=2026-10-29T03%3A10%3A07Z&sr=c&sp=r&sig=gMz5r7vMzRwuMvmB47xycB%2FaMSAiv%2F%2FJ2GYveOR8v2g%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.