1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 17:00:54 +00:00

Use SETEX command to set session

In order to be compatible with older version Redis, use `SETEX` command instead of `SET x y EX 360`.
This commit is contained in:
Brandon Gao 2014-10-16 20:16:17 +08:00
parent f9e991b538
commit 1eb9aef687

View File

@ -109,7 +109,7 @@ func (rs *RedisSessionStore) SessionRelease(w http.ResponseWriter) {
return return
} }
c.Do("SET", rs.sid, string(b), "EX", rs.maxlifetime) c.Do("SETEX", rs.sid, rs.maxlifetime, string(b))
} }
// redis session provider // redis session provider