fix: fix cookie path
This commit is contained in:
@@ -66,6 +66,7 @@ func main() {
|
|||||||
store = cookie.NewStore([]byte(common.SessionSecret))
|
store = cookie.NewStore([]byte(common.SessionSecret))
|
||||||
}
|
}
|
||||||
store.Options(sessions.Options{
|
store.Options(sessions.Options{
|
||||||
|
Path: "/",
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
MaxAge: 30 * 24 * 3600,
|
MaxAge: 30 * 24 * 3600,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user