set_cookie
Set a browser cookie by specifying name, value, and optional attributes like domain, path, expiry, secure, and httpOnly.
Instructions
Set a browser cookie with the given name, value, and optional attributes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name. | |
| path | No | Cookie path. Defaults to "/". | |
| value | Yes | Cookie value. | |
| domain | No | Cookie domain. Defaults to current page domain. | |
| expiry | No | Cookie expiry as a Unix timestamp in seconds. Omit for session cookie. | |
| secure | No | Whether the cookie is secure (HTTPS only). | |
| httpOnly | No | Whether the cookie is HTTP-only (not accessible via JavaScript). |