Fork me on GitHub
#ring
<
2020-07-07
>
johnnyjayjay0220:07:08

When exactly do ring sessions get deleted? I have a "log in via oauth2" thing on a website and before redirecting to the authorisation url I store a few things (such as the original uri requested) in the session. But after the login is completed and redirected to my website, the previous session is gone. For some reason (I really have no clue why) this didn't happen until I started tampering with it again. I tried to reproduce the state of the code in which it worked but had no success. Now it again drops the session every time.

johnnyjayjay0220:07:12

I'm looking for an explanation as well as how to circumvent/fix this

johnnyjayjay0220:07:46

I can send the code, but it's really just the default middleware + oauth2 middleware from clj-oauth2