createCookie

View Source

Summary

Creates a new cookie object.

Signature

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

Params

name

The name of the cookie

options

Options for the cookie

Returns

A new Cookie object