Our great sponsors
-
sessions
Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.
If you want to persist some form of context between requests you can store it in session data via a cookie that can be pulled/leveraged in the second handler, ex: https://github.com/gorilla/sessions. If you try to implement it yourself consider security aspects like that a user could modify if unsigned, etc. You can also store data server side and just issue a token in a cookie corresponding to a server side session. Hope that helps.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.