1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-16 18:10:55 +00:00

Merge pull request #868 from reterVision/patch-2

Use SETEX command to set session
This commit is contained in:
astaxie 2014-10-16 21:42:23 +08:00
commit fb8e9ae1a3

View File

@ -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