MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / clearSessionCookie

Method clearSessionCookie

apps/server/internal/httpserver/security.go:415–419  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

413}
414
415func (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
421func (s *Server) requestAuthenticatedViaSession(r *http.Request) bool {
422 cookie, err := r.Cookie(sessionCookieName)

Callers 2

sessionLogoutMethod · 0.95
sessionRotateTokenMethod · 0.95

Calls 1

sessionCookieMethod · 0.95

Tested by

no test coverage detected