1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:50:55 +00:00

fix session's maslifetime bug

This commit is contained in:
xiemengjun 2013-01-02 00:06:44 +08:00
parent 1530e3fbc2
commit aa4b66b985

View File

@ -100,7 +100,7 @@ func init() {
} else {
SessionName = ar
}
if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err != nil {
if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err != nil && ar != 0 {
int64val, _ := strconv.ParseInt(strconv.Itoa(ar), 10, 64)
SessionGCMaxLifetime = int64val
} else {