Setcookie > sniff > output on same page
- by lokust
Hi, I wonder if someone can help shed some light on this:
I drop a cookie if a user arrives to the site with a specific key/value in query string. i.e.: http://www.somesite.com?key=hmm01
The cookie code exists at top of the template before <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ) :
<?php
header("Content-Type: text/html; charset=utf-8");…