<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1017669" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1017669</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/asp-javascript-cookies#comment-1103511</link>
    <description> &lt;p&gt;I would use DateAdd instead:&lt;/p&gt;
&lt;p&gt;Response.Cookies(&quot;Name&quot;).Expires = DateAdd(&quot;m&quot;,3,Now)&lt;/p&gt;
&lt;p&gt;So this cookie would expire in 3 months.&lt;/p&gt;
&lt;p&gt;Here&#039;s an example of a cookie in javascript:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function SetValue() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var expdate = new Date ();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expdate.setTime (expdate.getTime() + (1000 * 60 * 60 * 24 * 365));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setCookie (&amp;quot;CookieName&amp;quot;, &amp;quot;CookieValue&amp;quot;, expdate);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function setCookie (name, value, expires) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!expires) expires = new Date();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.cookie = name + &amp;quot;=&amp;quot; + escape (value) + &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;; expires=&amp;quot; + expires.toGMTString() +&amp;nbsp; &amp;quot;; path=/&amp;quot;; &lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Then in ASP you would just request that cookiename.&lt;/p&gt;
 </description>
     <pubDate>Thu, 28 Feb 2002 15:54:08 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1103511 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/asp-javascript-cookies#comment-1103510</link>
    <description> &lt;p&gt;Yes, I am setting them to expired = Date + 1 which should make them available until midnight.  Right?  Is that what you meant?&lt;/p&gt;
&lt;p&gt;How would I write this in javascript?  The cookie name is &quot;Access&quot;.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
 </description>
     <pubDate>Thu, 28 Feb 2002 15:05:33 +0000</pubDate>
 <dc:creator>artsapimp</dc:creator>
 <guid isPermaLink="false">comment 1103510 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/asp-javascript-cookies#comment-1103372</link>
    <description> &lt;p&gt;Yes it is, but the cookie you create in ASP has to be the permanent kind (must specify expire date).&lt;/p&gt;
 </description>
     <pubDate>Wed, 27 Feb 2002 14:36:57 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1103372 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/asp-javascript-cookies#comment-1103346</link>
    <description> &lt;p&gt;put them in a  and read it with javascript.&lt;br /&gt;
Is that what you&#039;re asking?&lt;/p&gt;
 </description>
     <pubDate>Wed, 27 Feb 2002 09:39:18 +0000</pubDate>
 <dc:creator>Jack Michaelson</dc:creator>
 <guid isPermaLink="false">comment 1103346 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
