Session lost on window refresh
See original GitHub issueHi guys,
I found that this lib is working fine if you log in throught keycloak, but if you refresh window (tipically if you are developing the app), it loses the session and have to re-enter keycloak for login.
You can try it in example-app. if you enter /secret
, you could see token info. But if you press F5, you keep on /secret
page but there is no token. This is because keycloak lib doesn’t authenticate the user.
I have googled but can’t find how to read cookie session and pass it to keycloak lib to authenticate.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
php - session lost after refreshing page - Stack Overflow
I tried with "location.reload(true);" and it is still the same. And in the main page, where the navigation bar is, I make the...
Read more >session lost when page refresh - MSDN - Microsoft
By default, Session State is stored in memory (SessionState Mode "InProc"). When an unhandeld Error occurs on your page, the application pool ...
Read more >[RESOLVED] Session lost when clicking refresh
when i try to refresh the page the session i echoed was lost. why?? ... where you expect to see evidence that it...
Read more >Session Restore upon Browser Refresh
This means that upon page refresh/reload, the access token is lost, and your web application will be logged out. This page provides various...
Read more >Session lost on page reload in "private browsing" mode #819
Nonetheless, this means that isAuthenticatedCookieName cookie is lost when the user refreshes the page (or opens the app in a new private tab)....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh my f***ing god!! My browser was locking KCServer Cookies!!! 🤦♂️
Now its working like a charm!! Many thanks @baltom ! I will create a PR adding
silentCheckSsoRedirectUri
config toexample-app
Thanks!
hehe awesome! 😄 and we appreciate a PR!