Posted on October 31, 2010October 16, 2011 by admin PHP: header location and cookies When setting a cookie on a page that redirects, the cookie must be set after the call to header(‘Location: ….’);