this plugin deals with cookies the Textpattern way. It is works almost in the same way that chs_if_urlvar works for GET variables, barring some differences related to the way cookies are used.
It allows you to write cookie values on the page, condition parts of the page based on cookie value or existance, and it allows you to create new cookies, all using Textpattern markup.
Archived [?]: dead link