mirror of
https://github.com/astaxie/beego.git
synced 2025-06-20 02:10:39 +00:00
Merge pull request #868 from reterVision/patch-2
Use SETEX command to set session
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user