// host-prefixed-session-cookie (F29): the session cookie carries the `__Host-` prefix, so a browser accepts it only // when set over HTTPS by this exact host with Path=/ and no Domain; a sibling host cannot set or // overwrite it. SESSION_COOKIE_NAME sets the base name only; the prefix is applied exactly once. Edge-safe (used by // the middleware and the server session code). const HOST_PREFIX = "__Host-"; export function sessionCookieName(): string { const base = process.env.SESSION_COOKIE_NAME || "colite_admin"; return base.startsWith(HOST_PREFIX) ? base : HOST_PREFIX + base; }