mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 09:50:56 +00:00
parent
bbef213155
commit
9631c663d5
@ -342,6 +342,10 @@ func (c *Controller) DelSession(name interface{}) {
|
|||||||
c.CruSession.Delete(name)
|
c.CruSession.Delete(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Controller) DestroySession() {
|
||||||
|
GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Controller) IsAjax() bool {
|
func (c *Controller) IsAjax() bool {
|
||||||
return (c.Ctx.Request.Header.Get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest")
|
return (c.Ctx.Request.Header.Get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user