Commit 076bd0b4 authored by astaxie's avatar astaxie

#254 add controller func SessionRegenerateID

parent a443a798
......@@ -298,6 +298,11 @@ func (c *Controller) DelSession(name interface{}) {
c.CruSession.Delete(name)
}
func (c *Controller) SessionRegenerateID() {
c.CruSession = GlobalSessions.SessionRegenerateId(c.Ctx.ResponseWriter, c.Ctx.Request)
c.Ctx.Input.CruSession = c.CruSession
}
func (c *Controller) DestroySession() {
GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request)
}
......
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