mirror of
https://github.com/astaxie/beego.git
synced 2025-06-30 05:30:18 +00:00
support auto get session from input fix #211
This commit is contained in:
@ -270,7 +270,7 @@ func (c *Controller) SaveToFile(fromfile, tofile string) error {
|
||||
|
||||
func (c *Controller) StartSession() session.SessionStore {
|
||||
if c.CruSession == nil {
|
||||
c.CruSession = GlobalSessions.SessionStart(c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||
c.CruSession = c.Ctx.Input.CruSession
|
||||
}
|
||||
return c.CruSession
|
||||
}
|
||||
|
Reference in New Issue
Block a user