MCPcopy
hub / github.com/mudler/LocalAI / ClearSessionCookie

Function ClearSessionCookie

core/http/auth/session.go:171–182  ·  view source on GitHub ↗

ClearSessionCookie clears the session cookie.

(c echo.Context)

Source from the content-addressed store, hash-verified

169
170// ClearSessionCookie clears the session cookie.
171func ClearSessionCookie(c echo.Context) {
172 cookie := &http.Cookie{
173 Name: sessionCookie,
174 Value: "",
175 Path: "/",
176 HttpOnly: true,
177 Secure: isSecure(c),
178 SameSite: http.SameSiteLaxMode,
179 MaxAge: -1,
180 }
181 c.SetCookie(cookie)
182}

Callers 2

RegisterAuthRoutesFunction · 0.92
newTestAuthAppFunction · 0.92

Calls 1

isSecureFunction · 0.85

Tested by 1

newTestAuthAppFunction · 0.74