make session last 1mo
This commit is contained in:
2
main.go
2
main.go
@@ -97,7 +97,7 @@ func main() {
|
|||||||
|
|
||||||
store.Options = &sessions.Options{
|
store.Options = &sessions.Options{
|
||||||
Path: "/",
|
Path: "/",
|
||||||
MaxAge: 60 * 15,
|
MaxAge: 30 * 24 * 60 * 60, // seconds
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Secure: false, // needed for session to work over http
|
Secure: false, // needed for session to work over http
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user