New to PHP and having difficulty getting my cookies to stay put. My cookie will last for the session, but it won't persist until the set expiration date. I'm using PHP 3.0.12. Code is:
setcookie("user",$userid,time()+157248000,"/",".myhost.com",0);
What do I need to do to get the cookie to stay? Thanks!