hi, i'm trying to figure out how i can stay logged...
# talk-kratos
w
hi, i'm trying to figure out how i can stay logged in, even after refreshing the page and calling
toSession
, despite the session being expired. I try to submit a setting flow and get an error that I need to log in again to refresh the session, but then why does an expired session keeps hanging around in the cookies? Is this by design? So every time I call
toSession
I should manually check if it's expired?
s
The cookie expiry should be set to the session expiry. Did you check it using devtools?
w
I permenantly have a cookie for my domain. I can sit there refreshing for hours, and will always get a session, despite it having an expiry of 10 minutes.