# Redirect to Login Page on Referesh

**URL:** <https://forum.keycloak.org/t/redirect-to-login-page-on-referesh/18425>\
**Category:** Miscellanaeous\
**Created:** [November 14, 2022, 2:46pm UTC](https://forum.keycloak.org/t/redirect-to-login-page-on-referesh/18425 "2022-11-14T14:46:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naguib\_700](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@Naguib\_700](https://forum.keycloak.org/u/Naguib_700)\
**Post date:** [November 14, 2022, 2:46pm UTC](https://forum.keycloak.org/t/redirect-to-login-page-on-referesh/18425/1 "2022-11-14T14:46:55Z")

</div>

Hi,

I’m using Keycloak v16.1.1 with my Reactjs App through “ReactKeycloakProvider”. Everytime I hit refresh it redirects me to the login page and when I check the sessions on Keycloak I see the session still active and the token still valid.

I need to solve the redirect to Login Page with each refresh.

This issue happens on the production environment which has version 16.1.1 while I have a local version 15.0.2 and it does not have this issue.

---

<div class="post-metadata">

**Author:** ![carvinch](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/carvinch/32/11034_2.png) [@carvinch](https://forum.keycloak.org/u/carvinch)\
**Post date:** [August 5, 2024, 10:26pm UTC](https://forum.keycloak.org/t/redirect-to-login-page-on-referesh/18425/2 "2024-08-05T22:26:51Z")

</div>

@Naguib_700  
Hi, have you solved this problem?  
I meet the same issue after upgrade keycloak from 15 to 19  
And I tried many methods still does not figure out how to solve it.  
Much appreciations if you can give me some guidance and input

---

<div class="post-metadata">

**Author:** ![lamoboos223](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/lamoboos223/32/9748_2.png) [@lamoboos223](https://forum.keycloak.org/u/lamoboos223)\
**Post date:** [August 5, 2024, 10:36pm UTC](https://forum.keycloak.org/t/redirect-to-login-page-on-referesh/18425/3 "2024-08-05T22:36:56Z")

</div>

Hi @Naguib_700 can you install keycloak locally and confirm if the issue also happen locally with the v16?
