提交 1eb9aef6 编写于 作者: B Brandon Gao

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`.
上级 f9e991b5
......@@ -109,7 +109,7 @@ func (rs *RedisSessionStore) SessionRelease(w http.ResponseWriter) {
return
}
c.Do("SET", rs.sid, string(b), "EX", rs.maxlifetime)
c.Do("SETEX", rs.sid, rs.maxlifetime, string(b))
}
// redis session provider
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册