---
title: createCookie
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/cookie/src/lib/cookie.ts#L253
---

# 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`](/api/remix/cookie/class/Cookie/) object