# Keycloak remember-me 502 error in react app

**URL:** <https://forum.keycloak.org/t/keycloak-remember-me-502-error-in-react-app/16872>\
**Category:** Getting advice\
**Tags:** authentication\
**Created:** [August 12, 2022, 8:38am UTC](https://forum.keycloak.org/t/keycloak-remember-me-502-error-in-react-app/16872 "2022-08-12T08:38:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![irfanonk](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/irfanonk/32/6310_2.png) [@irfanonk](https://forum.keycloak.org/u/irfanonk)\
**Post date:** [August 12, 2022, 8:38am UTC](https://forum.keycloak.org/t/keycloak-remember-me-502-error-in-react-app/16872/1 "2022-08-12T08:38:23Z")

</div>

hi.I have enabled remember-me and login with remember-me checkbox selected. It has successfully logged in and worked normally. but when i close browser and open again it returns 502 from keycloak auth url, although it is supposed to relogin and sustain session. It seems when browser restart it deletes AUTH\_SESSION\_ID and AUTH\_SESSION\_ID\_LEGACY from cookies since theier expire value is “SESSION”. it works when i manually add these values to cookies.
