Ok, im trying to learn how to set and display cookies and etc.
This is what i have
CODE
<?php
$comic = hello;
if (isset($_COOKIE["comic1"])) {} else {setcookie(comic1,$comic, 0);}
print $_COOKIE["comic1"];
?>
Now setting it to 0 should set the cookie not to go away untill cookies have been deleted, correct?
Well when i quit my browser, it still isnt set, or at least it doesnt appear to be set. Just comes up as a blank page. So am i doing something wrong? Or is it just a limitation?
Thanks in advance (And can the person that ansewers this explain to me why what theyve said has worked).
EDIT: I have tried setting it just for a long time

. Still doesnt work when i exit browser. Or at least appear to.
This post has been edited by mattisdada: 18 Jul, 2008 - 06:17 AM