mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 04:20:40 +00:00
session: fix #688
This commit is contained in:
@ -75,12 +75,6 @@ func (cs *CouchbaseSessionStore) SessionID() string {
|
||||
func (cs *CouchbaseSessionStore) SessionRelease(w http.ResponseWriter) {
|
||||
defer cs.b.Close()
|
||||
|
||||
// if rs.values is empty, return directly
|
||||
if len(cs.values) < 1 {
|
||||
cs.b.Delete(cs.sid)
|
||||
return
|
||||
}
|
||||
|
||||
bo, err := session.EncodeGob(cs.values)
|
||||
if err != nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user