fb8e9ae1 by astaxie

Merge pull request #868 from reterVision/patch-2

Use SETEX command to set session
2 parents f9e991b5 1eb9aef6
...@@ -109,7 +109,7 @@ func (rs *RedisSessionStore) SessionRelease(w http.ResponseWriter) { ...@@ -109,7 +109,7 @@ func (rs *RedisSessionStore) SessionRelease(w http.ResponseWriter) {
109 return 109 return
110 } 110 }
111 111
112 c.Do("SET", rs.sid, string(b), "EX", rs.maxlifetime) 112 c.Do("SETEX", rs.sid, rs.maxlifetime, string(b))
113 } 113 }
114 114
115 // redis session provider 115 // redis session provider
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!