mirror of
https://github.com/astaxie/beego.git
synced 2024-11-05 02:00:54 +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 {
|
} else {
|
||||||
SessionSavePath = ar
|
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)
|
int64val, _ := strconv.ParseInt(strconv.Itoa(ar), 10, 64)
|
||||||
SessionGCMaxLifetime = int64val
|
SessionGCMaxLifetime = int64val
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user