I have a simple set cookie code...
$userName2='jonny21';
setcookie("username",$userName2,time() +60*60*24*30,'/');
If i save this file as set.php in location...
www.mySite.com/cookieLocat1/set.php
the cookie sets fine,
however if I save it again as set.php but from a diff location...
www.mySite.com/cookieLocat2/set.php
the cookie does not set.
why will it only set from one location and not everywhere? thanks J.
2007-03-01
07:41:28
·
3 answers
·
asked by
jonnie b
1
in
Computers & Internet
➔ Programming & Design