Skip to content

Commit 0494442

Browse files
committed
fix: fix cookie path
1 parent 631af1f commit 0494442

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func main() {
6666
store = cookie.NewStore([]byte(common.SessionSecret))
6767
}
6868
store.Options(sessions.Options{
69+
Path: "/",
6970
HttpOnly: true,
7071
MaxAge: 30 * 24 * 3600,
7172
})

0 commit comments

Comments
 (0)