Community Forums 

Main Content

Re:Mini Cart - Cookies - Different Directories

    Dec 22 2016 20:30:57

    #1

    Geoff

    Join date : 2008-09-18      Posts : 415

    For a cookie to be accessible across directories you need to specify a path when the cookie is set. Find this line -

    document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();

    Append a path parameter thus -

    document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString()+";path=/";

    All your pages will of course need this amendment.