Align session codec max-age with the 7-day cap (closes #108)
All checks were successful
check / check (push) Superseded by a newer commit; never tested

This commit was merged in pull request #132.
This commit is contained in:
2026-08-14 06:17:43 +02:00
parent d8f9d149b5
commit 5f18bc3eae
6 changed files with 247 additions and 39 deletions

View File

@@ -0,0 +1,10 @@
package session
import "github.com/gorilla/sessions"
// NewStore exposes the production cookie-store constructor so tests
// exercise the store the application actually runs with, rather than a
// lookalike assembled in the test.
func NewStore(key []byte, secure bool) *sessions.CookieStore {
return newStore(key, secure)
}