1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-25 23:55:18 +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 {
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 {