in reply to Setting Cookies First and Redirecting Page

As some people answering your query have already hinted at, possibly your problem is the domain in the cookie. You don't seem to be explicitely setting the domain for your cookies, so they are only valid for the domain they are set from. If your script is not running on, the cookies are not sent by the browser with the redirected request.