1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-21 10:10:18 +00:00

session: fix

This commit is contained in:
astaxie
2014-07-16 23:05:38 +08:00
parent e6d6419a65
commit 1858f3073b
3 changed files with 0 additions and 17 deletions

@ -72,11 +72,6 @@ func (rs *MemcacheSessionStore) SessionID() string {
// save session values to redis
func (rs *MemcacheSessionStore) SessionRelease(w http.ResponseWriter) {
defer rs.c.Close()
// if rs.values is empty, return directly
if len(rs.values) < 1 {
rs.c.Delete(rs.sid)
return
}
b, err := session.EncodeGob(rs.values)
if err != nil {