076bd0b4 by astaxie

#254 add controller func SessionRegenerateID

1 parent a443a798
...@@ -298,6 +298,11 @@ func (c *Controller) DelSession(name interface{}) { ...@@ -298,6 +298,11 @@ func (c *Controller) DelSession(name interface{}) {
298 c.CruSession.Delete(name) 298 c.CruSession.Delete(name)
299 } 299 }
300 300
301 func (c *Controller) SessionRegenerateID() {
302 c.CruSession = GlobalSessions.SessionRegenerateId(c.Ctx.ResponseWriter, c.Ctx.Request)
303 c.Ctx.Input.CruSession = c.CruSession
304 }
305
301 func (c *Controller) DestroySession() { 306 func (c *Controller) DestroySession() {
302 GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request) 307 GlobalSessions.SessionDestroy(c.Ctx.ResponseWriter, c.Ctx.Request)
303 } 308 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!