mirror of
https://github.com/astaxie/beego.git
synced 2025-07-12 08:01:01 +00:00
session destroy
This commit is contained in:
@ -568,6 +568,7 @@ func (c *Controller) SessionRegenerateID() {
|
||||
// DestroySession cleans session data and session cookie.
|
||||
func (c *Controller) DestroySession() {
|
||||
c.Ctx.Input.CruSession.Flush()
|
||||
c.Ctx.Input.CruSession = nil
|
||||
GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user