()
| 167 | } |
| 168 | |
| 169 | func (e *KubePiServer) setUpSession() { |
| 170 | SessionMgr = sessions.New(sessions.Config{Cookie: SessionCookieName, AllowReclaim: true, Expires: time.Duration(e.config.Spec.Session.Expires) * time.Hour}) |
| 171 | e.rootRoute.Use(SessionMgr.Handler()) |
| 172 | } |
| 173 | |
| 174 | const ContentTypeDownload = "application/download" |
| 175 |