Ok, figured out the admin section. When you set the cookie you have to set the path that can read the cookie. So if you do this:
Code:
setcookie('skin', $HTTP_GET_VARS['skin'], time() + 31536000, "/");
Then the skin works for the admin section as well.