Some checks failed
test / check and test (push) Has been cancelled
Chrome may not delete a cookie if the Domain field is missing from the Set-Cookie request. Add the `Domain` field - as well as `Secure` and `SameSite` for completeness - to `session.go`'s Manager.Destroy cookie response update. Co-authored-by: Kai Koponen <kaikoponen@google.com> Reviewed-on: #6 Co-authored-by: zig1000 <zig1000@noreply.gitea.com> Co-committed-by: zig1000 <zig1000@noreply.gitea.com> |
||
---|---|---|
.gitea/workflows | ||
couchbase | ||
ledis | ||
memcache | ||
mysql | ||
postgres | ||
redis | ||
.gitignore | ||
LICENSE | ||
README.md | ||
file.go | ||
file_test.go | ||
go.mod | ||
go.sum | ||
memory.go | ||
memory_test.go | ||
secret.go | ||
session.go | ||
session_test.go | ||
utils.go |
Session
Middleware session provides session management which based on a fork of Macaron Session for go-chi. It can use many session providers, including memory, file, Redis, Memcache, PostgreSQL, MySQL, Couchbase, Ledis and Nodb.
Installation
go get gitea.com/go-chi/session
Credits
This package is a modified version of go-macaron/session.
License
This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.