// logout user func LogoutUser(c *beego.Controller) { sess := c.StartSession() sess.Delete("auth_user_id") c.DestroySession() }
// logout user func LogoutUser(c *beego.Controller) { c.CruSession.Delete("auth_user_id") c.DestroySession() }