enhance(session): increase default cookie ttl to 60 days
This commit is contained in:
parent
db6681f448
commit
6b63195d28
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ func Session(secret string) gin.HandlerFunc {
|
|||
|
||||
// Also set Secure: true if using SSL, you should though
|
||||
// TODO:same-site policy
|
||||
Store.Options(sessions.Options{HttpOnly: true, MaxAge: 7 * 86400, Path: "/"})
|
||||
Store.Options(sessions.Options{HttpOnly: true, MaxAge: 60 * 86400, Path: "/"})
|
||||
return sessions.Sessions("cloudreve-session", Store)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue