A generic Cookie class that manages an individual Cookie by localizing the cookie management into a single class. This means the Cookie's name and and timing is abstracted.

The GetId() method is the key method here which retrieves a Cookie Id. If the cookie exists it returns the value, otherwise it generates a new Id and creates the cookie with the specs of the class and

It's recommended you store this class as a static member off another object to have