Skip to content
Discussion options

You must be logged in to vote

Are you using createCookieSessionStorage? I think what's probably happening is that the first revalidate sent the Cookie, because it's still there, and the second one doesn't send it anymore because.

So it's most likely a browser issue. With another session storage it wouldn't be an issue because the session data on your storage (e.g. the DB) will not exists anymore.

Have you tried using Broadcast Channel API instead? This way, when the user finish the logout on one tab it will send a message to other tabs and trigger a revalidation, instead of waiting for the user to switch to the tab, risking a race condition between the logout and the revalidation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonpittman
Comment options

Answer selected by brandonpittman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants