mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:40:55 +00:00
fix set sessiongcmaxlifetime #36
This commit is contained in:
parent
ab802df57f
commit
99b09b2e7a
2
beego.go
2
beego.go
@ -124,7 +124,7 @@ func init() {
|
||||
} else {
|
||||
SessionSavePath = ar
|
||||
}
|
||||
if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err != nil && ar != 0 {
|
||||
if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err == nil && ar != 0 {
|
||||
int64val, _ := strconv.ParseInt(strconv.Itoa(ar), 10, 64)
|
||||
SessionGCMaxLifetime = int64val
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user