Remarks
The arguments of the Cookie constructor are the cookie name and value.
Here the value is a random number.
Cookie names or values should not include white space or any of: “[”, “]”, “(”, “)”, “=”, “,”, “””, “/”, “?”, “@”, “:”, “;”.
To make a cookie persistent, set the expiration time in seconds using setMaxAge().
By default the expiration time is negative, indicating a session cookie.