fix #145
this.DestroySession()
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment