Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect after timeout not working on iOS/iPadOS 14.4 #17

Open
bmendonca opened this issue Feb 4, 2021 · 0 comments
Open

Redirect after timeout not working on iOS/iPadOS 14.4 #17

bmendonca opened this issue Feb 4, 2021 · 0 comments

Comments

@bmendonca
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant