func RestoreSession(w http.ResponseWriter, r *http.Request, c *server.Context, next server.Handler) { session := server.FetchSession(r) c.Session = session next(w, r, c) }