On a page in a subdirectory of the root of a site, is there a way to specify a cookie to be available to the entire domain that expires with the browser session?
these are mine assumptions:
1. cookies are, by default, available in the directory in which they are set. if i set a cookie from a page /tools/set.php, it won't be available at /index.php.
- I can make that cookie available by setting it to the root:
setcookie("mycookie","myvalue", time()+3600,"/");
my problem is that i want the cookie available for the browser session, but in order to set the cookie available at the root, I HAVE to specify an expiry. is there any way around this?
thanks,
squonk.