Cant read my cookie from the root of my site
<p>I successfully set a cookie with javascript on one page like this:
..
I went to this article and took the code from it:
<strong>UPDATE :</strong> </p>

<pre><code>**http://techpatterns.com/downloads/javascript_cookies.php**
</code></pre>

<p>The code works.. but I can set and read my cookie from one page only, when I go to the document root , the cookie isnt available there anymore..</p>

<p>I set my cookie when i am in a subfolder of my directory</p>

<p>I am also trying to set it this way:</p>

<pre><code>   document.cookie =
      "landing_page_ref=" + encodeURIComponent("FBLND1") +
    "; path=/; " ;
</code></pre>

<p>but i dont know where i am wrong</p>
