mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2025-12-26 00:12:50 +00:00
enhance(session): increase default cookie ttl to 60 days
This commit is contained in:
parent
db6681f448
commit
6b63195d28
|
|
@ -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…
Reference in New Issue