<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1028743" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1028743</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Cookie Issue....</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-detecting-multiple-cookies-using-one-script#comment-1169254</link>
    <description> &lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;Thanks for your input. I should have told you earlier that I&#039;m actually trying to change the code that I posted. That&#039;s why it doesn&#039;t appear to be looking for anything other than the default cookie. I&#039;m probably not explaining it well enough so I&#039;ll try one more time. &lt;/p&gt;
&lt;p&gt;I have a site, and when people enter the url and press enter they go to the &quot;index.html&quot; file as in the following &lt;a href=&quot;http://www.mysite.com/index.html&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/index.html&lt;/a&gt;. Once they get there they have to agree to some terms and conditions and when they do they get my cookie, and are then forwarded to the homepage.html file. Each time they come back to the site they automatically arrive at the homepage.html page because the cookie allows them to be redirected (but you knew that already). &lt;/p&gt;
&lt;p&gt;The problem is......when people enter my site through any one of the OTHER pages on the site they don&#039;t get the &quot;Terms and Conditions&quot; page....so in essence....they skip the agreement stage. This is bad. I want all of the pages on the site to check for the cookie, and if it&#039;s not present then they are redirected to the index.html page which right now, is the ONLY page that produces a cookie. However, after they AGREE and the cookie is accepted, they automatically arrive at the page they we&#039;re trying to access (which is not always the homepage).&lt;/p&gt;
&lt;p&gt;I hope I&#039;m not being to much of a pain here, but I&#039;m kinda stumped on this. Once again, thanks for any suggestions.&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Apr 2005 03:22:18 +0000</pubDate>
 <dc:creator>NewTechGuy</dc:creator>
 <guid isPermaLink="false">comment 1169254 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-detecting-multiple-cookies-using-one-script#comment-1169226</link>
    <description> &lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;  Maybe I haven&#039;t been awake long enough (or haven&#039;t had enough espresso).  Any rate, i don&#039;t see where you are looking for anything other than the default cookie.  Try creating the cookieName &amp;amp; then looking for it:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;var cookieNames = new Array(&amp;#039;cookie1&amp;#039;, &amp;#039;cookie2&amp;#039;, &amp;#039;cookie3&amp;#039;);&lt;br /&gt;function getName()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(document.cookie)&amp;nbsp; // there are cookies&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; cookieNames.length; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index = document.cookie.indexOf(cookieNames[i]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (index != -1)&amp;nbsp; // we found our cookie&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; namestart = (document.cookie.indexOf(&amp;quot;=&amp;quot;, index) + 1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nameend = document.cookie.indexOf(&amp;quot;;&amp;quot;, index);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (nameend == -1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nameend = document.cookie.length;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(document.cookie.substring(namestart, nameend));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 07 Apr 2005 15:59:59 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1169226 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
