Can't set cookies in PHP?

Posted by William on Stack Overflow See other posts from Stack Overflow or by William
Published on 2010-03-15T01:53:10Z Indexed on 2010/03/15 1:59 UTC
Read the original article Hit count: 286

Filed under:
|

For some reason This php script won't echo anything:

<?php
 setcookie("pop",'hi',time()+604800); 
echo $HTTP_COOKIE_VARS["pop"]; 
?>

What am I doing wrong?

© Stack Overflow or respective owner

Related posts about php

Related posts about cookies