Skip to content

Commit

Permalink
fix: fix cookie path
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Nov 10, 2024
1 parent 631af1f commit 0494442
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func main() {
store = cookie.NewStore([]byte(common.SessionSecret))
}
store.Options(sessions.Options{
Path: "/",
HttpOnly: true,
MaxAge: 30 * 24 * 3600,
})
Expand Down

0 comments on commit 0494442

Please sign in to comment.