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