HTTP Session Management for Go
This release includes:
SessionManager.HashTokenInStore
option, which hashes the session token with SHA256 before passing it to the store. Thanks to @bramvbilsen for this.Hijacker
and Flusher
interfaces for Go 1.20+ (fixes issues #188, #196, #186)SetDeadline()
method. Thanks @lwj5 and @fnoopv.LoadAndSave()
method has been rewritten, so that it no longer buffers responses (which should improve performance) and is now compatible with http.ResponseController
.Version 2.5.0 of SCS includes:
Iterate()
method.Token()
, Deadline()
, GetInt32()
, GetInt64()
and RememberMe()
methods.context.Context
are now supported.Thanks to everyone who contributed to this release, especially:
context.Context
in session stores.context.Context
in session stores.