diff --git a/internal/httpservers/restapi.go b/internal/httpservers/restapi.go index b0cd3d4..5779bb6 100644 --- a/internal/httpservers/restapi.go +++ b/internal/httpservers/restapi.go @@ -116,8 +116,11 @@ func forwardResponseHandlerLogout(md metadata.MD, w http.ResponseWriter) { http.SetCookie( w, &http.Cookie{ - Name: "olivetin-sid-local", - Value: "", + Name: "olivetin-sid-local", + MaxAge: 31556952, // 1 year + Value: "", + HttpOnly: true, + Path: "/", }, )