Q1: How should a gateway forward multiple Set-Cookie fields?
Multiple ChoiceAn origin returns two Set-Cookie fields. One contains an Expires date with a comma. A gateway normally combines repeated fields into one comma-separated value.
Scope: RFC 6265 defines the Cookie and Set-Cookie fields and user-agent processing. It does not define a cookie value's application semantics or make Path, Domain, Secure, or HttpOnly a complete authorization boundary. CSRF defenses and server-side session policy remain application responsibilities.
An origin returns two Set-Cookie fields. One contains an Expires date with a comma. A gateway normally combines repeated fields into one comma-separated value.
Two mutually distrusting applications share example.com. The administrator assigns /finance and /games and relies on Path attributes to keep each application's security-sensitive cookies isolated.
An HTTPS service marks its session cookie Secure. Its review concludes that an active network attacker cannot inject a replacement cookie because the real cookie is never sent over HTTP.
An agent opens an attacker-selected page. That page causes the browser to submit a transfer request to bank.example. The browser automatically attaches a valid Secure, HttpOnly session cookie, and the bank authorizes the transfer solely from that cookie.
A request contains `SID=finance; SID=other`, created from same-name cookies with different Path values. The backend always trusts the first value because Section 5.4 recommends longer paths first.
A workflow cookie has Max-Age=86400. The server treats its absence during that day as proof of tampering and permanently rejects the user's account.