fix: fix cookie path

This commit is contained in:
JustSong
2024-11-10 12:43:01 +08:00
parent 631af1f827
commit 04944427b8
+1
View File
@@ -66,6 +66,7 @@ func main() {
store = cookie.NewStore([]byte(common.SessionSecret))
}
store.Options(sessions.Options{
Path: "/",
HttpOnly: true,
MaxAge: 30 * 24 * 3600,
})