$id is no used for setting the cookie