(r *http.Request)
| 413 | } |
| 414 | |
| 415 | func (s *Server) clearSessionCookie(r *http.Request) *http.Cookie { |
| 416 | cookie := s.sessionCookie(r, "", time.Unix(0, 0)) |
| 417 | cookie.MaxAge = -1 |
| 418 | return cookie |
| 419 | } |
| 420 | |
| 421 | func (s *Server) requestAuthenticatedViaSession(r *http.Request) bool { |
| 422 | cookie, err := r.Cookie(sessionCookieName) |
no test coverage detected