---
title: createCookie
---

# createCookie

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/cookie/src/lib/cookie.ts#L256" target="_blank">View Source</a>

## Summary

Creates a new cookie object.

## Signature

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

```

## Params

### name

The name of the cookie

### options

Options for the cookie

## Returns

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