You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem tracing cookie expiration in Google Chrome and Safari browsers - but everything works fine in Firefox. My goal is when a cookie expires I must show a modal.
What I'm doing:
setting a test cookie with 15 seconds lifespan. This operation is successful.
Expected: as soon as cookie is set, I see cookieInfo. As it's expired, I see NO instead of cookie info.
Actual: even if a cookie is expired, cookie information is still being displayed.
Environment: React 18, react-cookies - 7.2.0, Chrome 128.0.6613.86
I have a problem tracing cookie expiration in Google Chrome and Safari browsers - but everything works fine in Firefox. My goal is when a cookie expires I must show a modal.
What I'm doing:
Expected: as soon as cookie is set, I see
cookieInfo
. As it's expired, I seeNO
instead of cookie info.Actual: even if a cookie is expired, cookie information is still being displayed.
Environment: React 18, react-cookies - 7.2.0, Chrome 128.0.6613.86
Here's a repo with minimal code - https://github.com/LazzyLizzard/cookie-check. Thank you.
The text was updated successfully, but these errors were encountered: