mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 17:20:50 +00:00
fix session's maslifetime bug
This commit is contained in:
parent
1530e3fbc2
commit
aa4b66b985
2
beego.go
2
beego.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user