Describe the problem you're having
I'm trying to save a pointer into a session, specifically a OAuth2 configuration, but I'm having some issue.
Versions
go version go1.18.1 darwin/amd64
Code!
The following piece of code should reproduce the issue.
When I go to /puthandler I can see that myConf is stored in the session, but when I go to /gethandler it is nil.
I feel like I'm missing something very basic here but for the love of me I cannot figure it out.
Describe the problem you're having I'm trying to save a pointer into a session, specifically a OAuth2 configuration, but I'm having some issue.
Versions go version go1.18.1 darwin/amd64
Code! The following piece of code should reproduce the issue. When I go to
/puthandler
I can see thatmyConf
is stored in the session, but when I go to/gethandler
it isnil
. I feel like I'm missing something very basic here but for the love of me I cannot figure it out.