mirror of
https://github.com/astaxie/beego.git
synced 2025-07-12 09:11:01 +00:00
bug fix, session stored in redis cannot be deleted
This commit is contained in:
@ -398,6 +398,7 @@ func (c *Controller) SessionRegenerateID() {
|
||||
|
||||
// DestroySession cleans session data and session cookie.
|
||||
func (c *Controller) DestroySession() {
|
||||
c.Ctx.Input.CruSession.Flush()
|
||||
GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user