Skip to content

Commit

Permalink
fix beego#145
Browse files Browse the repository at this point in the history
this.DestroySession()
  • Loading branch information
astaxie committed Aug 10, 2013
1 parent bbef213 commit 9631c66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ func (c *Controller) DelSession(name interface{}) {
c.CruSession.Delete(name)
}

func (c *Controller) DestroySession() {
GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request)
}

func (c *Controller) IsAjax() bool {
return (c.Ctx.Request.Header.Get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest")
}
Expand Down

0 comments on commit 9631c66

Please sign in to comment.