mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 11:50:50 +00:00
Merge pull request #868 from reterVision/patch-2
Use SETEX command to set session
This commit is contained in:
commit
fb8e9ae1a3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user