diff --git a/main.go b/main.go index 11d91f5..f6f24f4 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,7 @@ func main() { store = cookie.NewStore([]byte(common.SessionSecret)) } store.Options(sessions.Options{ + Path: "/", HttpOnly: true, MaxAge: 30 * 24 * 3600, })