Forum Moderators: coopster
<?
setcookie("something", whatever, time()+36000, "/folder/", ".mydomain.com", 0);
?>
<?
setcookie("something", whatever, time()+36000);
?>
Is this an error in my syntax or a browser issue (tested IE5.5/6.0), or is this just how it works?
Thanks.
I don't think these are a problem, since (1) It shouldn't matter what folder I'm in because cookies are only folder-specific if I want them to be, and (2) .mydomain.com is a standard, and means that the cookie applies to all subdomains of mydomain.com.
I'll look into #1 though, any suggestions of errors are a help!
-- James.
If you want the cookie to only apply in the folder, leave the folder blank.