2dca48f2 by astaxie

fix sesseion redis db error

1 parent 4138fe02
...@@ -145,7 +145,7 @@ func (rp *RedisProvider) SessionInit(maxlifetime int64, savePath string) error { ...@@ -145,7 +145,7 @@ func (rp *RedisProvider) SessionInit(maxlifetime int64, savePath string) error {
145 rp.password = configs[2] 145 rp.password = configs[2]
146 } 146 }
147 if len(configs) > 3 { 147 if len(configs) > 3 {
148 dbnum, err := strconv.Atoi(configs[1]) 148 dbnum, err := strconv.Atoi(configs[3])
149 if err != nil || dbnum < 0 { 149 if err != nil || dbnum < 0 {
150 rp.dbNum = 0 150 rp.dbNum = 0
151 } else { 151 } else {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!