9631c663 by astaxie

fix #145

this.DestroySession()
1 parent bbef2131
...@@ -342,6 +342,10 @@ func (c *Controller) DelSession(name interface{}) { ...@@ -342,6 +342,10 @@ func (c *Controller) DelSession(name interface{}) {
342 c.CruSession.Delete(name) 342 c.CruSession.Delete(name)
343 } 343 }
344 344
345 func (c *Controller) DestroySession() {
346 GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request)
347 }
348
345 func (c *Controller) IsAjax() bool { 349 func (c *Controller) IsAjax() bool {
346 return (c.Ctx.Request.Header.Get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest") 350 return (c.Ctx.Request.Header.Get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest")
347 } 351 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!