fix set sessiongcmaxlifetime #36
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -124,7 +124,7 @@ func init() { | ... | @@ -124,7 +124,7 @@ func init() { |
| 124 | } else { | 124 | } else { |
| 125 | SessionSavePath = ar | 125 | SessionSavePath = ar |
| 126 | } | 126 | } |
| 127 | if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err != nil && ar != 0 { | 127 | if ar, err := AppConfig.Int("sessiongcmaxlifetime"); err == nil && ar != 0 { |
| 128 | int64val, _ := strconv.ParseInt(strconv.Itoa(ar), 10, 64) | 128 | int64val, _ := strconv.ParseInt(strconv.Itoa(ar), 10, 64) |
| 129 | SessionGCMaxLifetime = int64val | 129 | SessionGCMaxLifetime = int64val |
| 130 | } else { | 130 | } else { | ... | ... |
-
Please register or sign in to post a comment