(feat) Cookie.

What does this do/check for? Some comments in this kind of code would be great.