A cookie contains information which is stored by the browser on your computer. When the browser receives a request for the cookie it sends that information back to the server.
Yes, cookies are optional. Find out how to manage your browser settings or delete cookies at AboutCookies.org