// Member session disconnect func (this *mainC) Msd(ctx *web.Context) { if util.MemberHttpSessionDisconnect(ctx) { ctx.Session().Set("member", nil) ctx.Session().Save() ctx.Response.Write([]byte("disconnect success")) } else { ctx.Response.Write([]byte("disconnect fail")) } }
// 断开 func (this *MemberC) Disconnect(ctx *web.Context) { var result gof.Message if util.MemberHttpSessionDisconnect(ctx) { result.Result = true } else { result.Message = "disconnect fail" } ctx.Response.JsonOutput(result) }