@arolariu/website / lib/actions/cookies/cookies.action / setCookie
Function: setCookie()
setCookie(
name,value):Promise<void>
Defined in: lib/actions/cookies/cookies.action.ts:48
Sets a cookie on the outgoing response.
Parameters
name
string
The cookie name to set.
value
string
The cookie value to store.
Returns
Promise<void>
A promise that resolves when the cookie has been written.
Remarks
Uses {path: "/"} so the cookie is available site-wide.