Use the set_cookie method from Input class

Any reason to not do this? The cookie() method is used to read it...