Commit 9631c663 authored by astaxie's avatar astaxie

fix #145

this.DestroySession()
parent bbef2131
......@@ -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")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment