Cookie Path Example

<SCRIPT>

var expdate = new Date();

expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000));  // 24 hrs from now

setCookie("TestPath", "TestPath no path assigned", expdate);
setCookie("TestPath", "TestPath Week 2", expdate, "/coin70/week2");
setCookie("TestPath", "TestPath /", expdate, "/");
setCookie("Week7", "Week 7 Cookie Path Test", expdate, "/coin70/week7");

document.write(unescape(document.cookie) + "<P>");

document.write("TestPath = " + getCookie("TestPath") + "<BR>");
document.
write("Week7 = " + getCookie("Week7") + "<BR>");

</SCRIPT>