<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012313" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012313</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1071120</link>
    <description> &lt;p&gt;so... if the user closes their browser, and comes back within time, how does the server know what session to match it with?&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Sep 2000 05:17:48 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1071120 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1071071</link>
    <description> &lt;p&gt;Notice that session is NOT lost when you/ your visitors close the browser!&lt;/p&gt;
&lt;p&gt;And yes, I think it would expire after about 15-20mins (I don&#039;t know exactly, just about that)&lt;/p&gt;
&lt;p&gt;You could use session management and specify the method is cookie instead of temp files, db,...&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Sep 2000 20:34:30 +0000</pubDate>
 <dc:creator>123finder.com</dc:creator>
 <guid isPermaLink="false">comment 1071071 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1071037</link>
    <description> &lt;p&gt;sessions last 20 minutes if i am not wrong. and do not trust sessions.&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Sep 2000 09:09:35 +0000</pubDate>
 <dc:creator>gokhan</dc:creator>
 <guid isPermaLink="false">comment 1071037 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1071025</link>
    <description> &lt;p&gt;forgot to mention...&lt;br /&gt;
any cookies you set in PHP are only accessable to PHP pages.  This means that you may have to convert many of your pages to PHP.  If you do this, be sure to double check your links!&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Sep 2000 05:31:16 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1071025 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1071024</link>
    <description> &lt;p&gt;session are nice (and at times, life-savers), but I don&#039;t think they&#039;d be of help here.&lt;/p&gt;
&lt;p&gt;If a user signs up and get a username/password.  then closes his browser, the session is lost.  Cookies are the only alternative.  And if the user has cookies turned off, they have no choice but to type and re-type the info.&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Sep 2000 05:29:32 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1071024 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1071019</link>
    <description> &lt;p&gt;But don&#039;t rely on cookies since the user could turn them off&lt;br /&gt;
If your host supports php4, use session management, which is very easy and basically it does use cookies (and other methods too!)&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Sep 2000 04:23:05 +0000</pubDate>
 <dc:creator>123finder.com</dc:creator>
 <guid isPermaLink="false">comment 1071019 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1070919</link>
    <description> &lt;p&gt;you can read more about setcookie here:&lt;br /&gt;
&lt;a href=&quot;http://php.net/manual/function.setcookie.php&quot; class=&quot;bb-url&quot;&gt;http://php.net/manual/function.setcookie.php&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Sep 2000 23:22:23 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1070919 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cookie#comment-1070918</link>
    <description> &lt;p&gt;I don&#039;t have time to write the whole thing out, but here is the syntx for a cookie..&lt;/p&gt;
&lt;p&gt;setcookie(&quot;CookieName&quot;, &quot;Value&quot;, &quot;TimeUntilExpire&quot;);&lt;/p&gt;
&lt;p&gt;snippet from my site:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if (isset($NewUserName)) { // User name&lt;br /&gt;setcookie(UserName, $NewUserName, time()+(60*60*24*365));&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;There are more parameters, but they are not necessary.  This cookie expires in one year.&lt;/p&gt;
&lt;p&gt;You need to set one cookie for each variable you want to save on the visitors machine.  The name of the cookie will the the name of the variable next time they visit.&lt;/p&gt;
&lt;p&gt;in the HTML, you&#039;ll want something like:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;input type=text value=&amp;quot;&amp;lt;? if (isset($UserName)) echo $UserName; ?&amp;gt;&amp;quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Good luck,&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Sep 2000 23:20:41 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1070918 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
