session-timeout
session-timeout copied to clipboard
Redirect after timeout not working on iOS/iPadOS 14.4
Hello there! This package works great for all web browsers except for Safari on iOS and iPadOS. While the pop-up window asking about session expiration works, the actual timeout method to redirect to the /logout
url does not seem to activate, leaving the pop up warning box up indefinitely. Is there any advice on how this can be fixed or a work around?
sessionTimeout({
warnAfter: 300000,
timeOutAfter: 480000,
logOutUrl: '/logout',
keepAliveUrl: '/keepalive',
timeOutUrl: '/logout',
titleText: 'Session Timeout',
stayConnectedBtnText: 'Continue',
message: 'Your session is about to expire. Continue?',
});
I have this so far that can be inserted into the html code and Safari does seem to accept this (redirects after 15 seconds):
<meta http-equiv="refresh" content="15;url=google.com"/>
Perhaps there is a way to have the meta
attribute activate only if a timeout occurs? Otherwise, the redirect would happen regardless of whether the stayConnectedBtn
is clicked.
Thank you for any help you can provide on this.