View Full Version : problem with setting path with cookies

09-24-2003, 05:50 PM
Having problems with setting the path in my cookies. I'm using the following code to set my cookies from various different folders within my site.

ExpireDate.setTime(ExpireDate.getTime() + (1 * 24 * 3600 * 1000));

document.cookie="visit=true; expires="+ ExpireDate.toGMTString()+"path=/; domain=mydomain.com";

Instead of the cookies been stored as @mydomain.txt they are been stored all over the place with the name of the folder that the script is in and I cant seem to access the cookies from different folders.

Any help with this would be greatly appreciated.

09-24-2003, 06:04 PM
sorry stupid mistake was missing ; after the expire date.