fix session's maslifetime bug
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -100,7 +100,7 @@ func init() { | ... | @@ -100,7 +100,7 @@ func init() { |
| 100 | } else { | 100 | } else { |
| 101 | SessionName = ar | 101 | SessionName = ar |
| 102 | } | 102 | } |
| 103 | if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err != nil { | 103 | if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err != nil && ar != 0 { |
| 104 | int64val, _ := strconv.ParseInt(strconv.Itoa(ar), 10, 64) | 104 | int64val, _ := strconv.ParseInt(strconv.Itoa(ar), 10, 64) |
| 105 | SessionGCMaxLifetime = int64val | 105 | SessionGCMaxLifetime = int64val |
| 106 | } else { | 106 | } else { | ... | ... |
-
Please register or sign in to post a comment