mirror of https://github.com/casbin/casnode.git
Reduce session life time to 1 day.
This commit is contained in:
parent
d1a527f398
commit
15fbad7f91
2
main.go
2
main.go
|
@ -49,7 +49,7 @@ func main() {
|
|||
|
||||
beego.BConfig.WebConfig.Session.SessionProvider = "file"
|
||||
beego.BConfig.WebConfig.Session.SessionProviderConfig = "./tmp"
|
||||
beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 3600 * 24 * 365
|
||||
beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 3600 * 24
|
||||
|
||||
port := beego.AppConfig.String("httpport")
|
||||
if len(os.Args) > 1 {
|
||||
|
|
Loading…
Reference in New Issue