...

View Full Version : problem with setting path with cookies



jar_jam
09-24-2003, 04: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.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum