Hmm, is it on a different domain? If that's the case then I don't think you can set cookies for another domain. It's also more than just a cookie as it actually needs to update the database as well.