<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1049104" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1049104</link>
    <description></description>
    <language>en</language>
          <item>
    <title>I assume I need to put this</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-me-cookies-html-and-ie8#comment-1261849</link>
    <description> &lt;blockquote&gt;&lt;p&gt;I assume I need to put this script into an html file and then load that file into chrome and then use this feature to see the results. Am I right?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You just open it and start entering Javascript immediately. Don&#039;t put &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags into it, since they&#039;re not Javascript but HTML.&lt;/p&gt;
&lt;p&gt;For example, open the Javascript console and paste:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;alert(&amp;#039;hello world&amp;#039;)&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Then press enter.&lt;/p&gt;
&lt;p&gt;What I meant above, when I said you should copy and paste into the Javascript console, was you should copy and paste:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;cookie_name = &amp;quot;specialcookiehuge&amp;quot;;&lt;br /&gt;cookie_value = &amp;quot;specialcookievalue&amp;quot;;&lt;br /&gt;document.cookie = cookie_name + &amp;quot;=&amp;quot; + cookie_value + &amp;quot;; expires=Monday, 04-Apr-2020 05:00:00 GMT; path=/&amp;quot;;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Then copy and paste:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;document.cookie&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Hope this makes sense! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2011 21:07:00 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1261849 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>This feature with Google</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-me-cookies-html-and-ie8#comment-1261847</link>
    <description> &lt;p&gt;This feature with Google Chrome looks very interesting and this is the first time I have seen it.  When I click on Tools -&amp;gt; javascript console, it opens up a window at the bottom of the browser that is cut in two.  The top half shows the source for the current page.  The bottom half shows an entry field.  When I past the script you mentioned above,   It says (in red) SyntaxError: Unexpected token &amp;lt;&lt;/p&gt;
&lt;p&gt;I assume that this must not be how this is used.  I assume I need to put this script into an html file and then load that file into chrome and then use this feature to see the results.  Am I right?&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2011 19:56:24 +0000</pubDate>
 <dc:creator>xarzu</dc:creator>
 <guid isPermaLink="false">comment 1261847 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>This code doesn&#039;t seem to</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-me-cookies-html-and-ie8#comment-1261846</link>
    <description> &lt;p&gt;This code doesn&#039;t seem to make much sense. For example:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if(document.cookie != document.cookie)&lt;br /&gt;{&lt;br /&gt;[...]&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
will always be false, maybe there&#039;s some Javascript trickery I&#039;m not understanding, but this looks equivalent to:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if(true != true) {&lt;br /&gt;[...]&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;document.cookie=cookie_name+&amp;quot;; expires=Monday, 04-Apr-2020 05:00:00 GMT&amp;quot;;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
also won&#039;t work as you expect, because it&#039;s not a name/value pair.&lt;/p&gt;
&lt;p&gt;Try this as your script:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[//&amp;gt;&amp;lt;!--&lt;br /&gt;function putCookie() {&lt;br /&gt;&amp;nbsp; cookie_name = &amp;quot;specialcookiehuge&amp;quot;;&lt;br /&gt;&amp;nbsp; cookie_value = &amp;quot;specialcookievalue&amp;quot;;&lt;br /&gt;&amp;nbsp; document.cookie = cookie_name + &amp;quot;=&amp;quot; + cookie_value + &amp;quot;; expires=Monday, 04-Apr-2020 05:00:00 GMT; path=/&amp;quot;;&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&amp;lt;!]]&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I haven&#039;t checked in IE, but in Google Chrome you can go to &lt;em&gt;Tools -&amp;gt; Javascript console&lt;/em&gt;, run the code that&#039;s inside the function, then enter &lt;code&gt;document.cookie&lt;/code&gt; and you&#039;ll see your key/value pair is set.&lt;/p&gt;
&lt;p&gt;You will also want to change those local variables into arguments of the function.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2011 19:12:00 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1261846 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
