Retrieves a cookie. Useful for retrieving non-essential state to provide a better
user experience. Note that some browser settings may prevent cookies from being saved,
and users can clear browser cookies at any time, so previously saved cookies should not be assumed
to be available.
Parameters
name: string
The name of the cookie to be retrieved.
defaultValue: string
The value to be returned if no cookie with the specified name is found on the client.
Retrieves a cookie. Useful for retrieving non-essential state to provide a better user experience. Note that some browser settings may prevent cookies from being saved, and users can clear browser cookies at any time, so previously saved cookies should not be assumed to be available.