1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 20:04:13 +00:00

fix set sessiongcmaxlifetime #36

This commit is contained in:
astaxie 2013-04-18 09:42:42 +08:00
parent ab802df57f
commit 99b09b2e7a

View File

@ -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 {