Session middleware for go-chi
Find a file
viceice 7ad894c882
All checks were successful
test / test (push) Successful in 31s
chore(renovate): remove obsolete annotation
Now built-in
- https://github.com/renovatebot/renovate/pull/41632
2026-03-10 23:08:45 +00:00
.forgejo/workflows chore(renovate): remove obsolete annotation 2026-03-10 23:08:45 +00:00
internal/test chore: update to golangci-lint v2 2025-05-23 18:22:47 +02:00
memcache Add Empty() receiver function to RawStore interface 2026-02-14 12:46:19 +01:00
mysql Add Empty() receiver function to RawStore interface 2026-02-14 12:46:19 +01:00
postgres Add Empty() receiver function to RawStore interface 2026-02-14 12:46:19 +01:00
redis Add Empty() receiver function to RawStore interface 2026-02-14 12:46:19 +01:00
.gitignore [CHORE] Cleanup goconvey files 2024-08-23 21:33:03 +02:00
.golangci.yaml Update module golangci-lint to v2.6.0 (#61) 2025-10-31 23:39:25 +00:00
file.go Add Empty() receiver function to RawStore interface 2026-02-14 12:46:19 +01:00
file_test.go [CHORE] Simplify tests 2024-08-23 21:33:03 +02:00
go.mod Update dependency go to v1.25.8 (#86) 2026-03-06 01:10:31 +00:00
go.sum Update filippo.io/edwards25519 (indirect) to v1.1.1 [SECURITY] (#85) 2026-03-04 14:08:35 +00:00
LICENSE Initial commit 2014-07-15 19:57:55 -04:00
memory.go Add Empty() receiver function to RawStore interface 2026-02-14 12:46:19 +01:00
memory_test.go [CHORE] Simplify tests 2024-08-23 21:33:03 +02:00
README.md [FEAT] Use simpler config parsing for redis 2024-08-23 21:33:03 +02:00
renovate.json chore(renovate): use shared org preset 2024-11-07 15:29:47 +01:00
session.go Add DeferSetCookie option to not send Set-Cookie for empty sessions 2026-02-14 12:53:43 +01:00
session_test.go Add DeferSetCookie option to not send Set-Cookie for empty sessions 2026-02-14 12:53:43 +01:00
utils.go Update module golangci-lint to v2.6.0 (#61) 2025-10-31 23:39:25 +00:00

Session

Middleware session provides session management which based on a fork of a fork of Macaron Session for go-chi. It can use many session providers, including memory, file, Redis, Memcache, PostgreSQL and MySQL.

Installation

go get code.forgejo.org/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.