---
title: "createCookie"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/cookie/src/lib/cookie.ts#L257"
---

# createCookie

## Summary

Creates a new cookie object.

## Signature

```ts
function createCookie(name: string, options: CookieOptions): Cookie

```

## Parameters

### `name`

The name of the cookie

### `options`

Options for the cookie

## Returns

A new [`Cookie`](/cookie/class/Cookie/) object