# setSignedCookie

**Kind:** Function

**Source:** [`src/helper/cookie/index.ts`](https://github.com/honojs/hono/blob/main/src/helper/cookie/index.ts#L130)

**Part of:** [Helper](subsystem-src-helper)

## Signature

```ts
async function setSignedCookie(c: Context, name: string, value: string, secret: string | BufferSource, opt: CookieOptions): Promise<void>
```

## Parameters

| Name | Type |
|---|---|
| `c` | `Context` |
| `name` | `string` |
| `value` | `string` |
| `secret` | `string | BufferSource` |
| `opt` | `CookieOptions` |

**Returns:** `Promise<void>`
