mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 12:20:40 +00:00
bug fix, session stored in redis cannot be deleted
This commit is contained in:
@ -60,6 +60,11 @@ func (rs *RedisSessionStore) SessionID() string {
|
||||
}
|
||||
|
||||
func (rs *RedisSessionStore) SessionRelease(w http.ResponseWriter) {
|
||||
// if rs.values is empty, return directly
|
||||
if len(rs.values) < 1 {
|
||||
return
|
||||
}
|
||||
|
||||
c := rs.p.Get()
|
||||
defer c.Close()
|
||||
|
||||
|
Reference in New Issue
Block a user