Export session metadata for legacy cookie restore.
The returned string contains no secrets; the browser cookie jar must still hold the HTTP-only cookie.
Export the cookie secret needed to restore this cookie session.
This is available when the SDK captured the cookie secret, such as in Node.js. Browser sessions cannot read HTTP-only Set-Cookie values.
Cookie-only view over a cookie-backed
Session.Grant-backed sessions do not expose this view; use
session.cookieand check forundefinedbefore calling cookie-specific methods.