Optionaldomain
Optionalexpires
Expiration date, date string, or timestamp. Omit for a session cookie.
Optionalpath
URL path scope for the cookie.
Optionalsamesite
SameSite policy applied by the browser.
Optionalsecure
Restrict the cookie to HTTPS connections.
Domain scope for the cookie.