<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015292" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015292</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-php-poll#comment-1088347</link>
    <description> &lt;p&gt;3600 is the number of seconds in 1 hour.&lt;/p&gt;
&lt;p&gt;What I normally do is this&lt;br /&gt;
setcookie($cookie_name, $cookie_value, time()+(60*60*24*$days_expire));&lt;/p&gt;
&lt;p&gt;Make $days_expire the number of days that you want to set the cookie to.&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Aug 2001 22:15:02 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088347 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-php-poll#comment-1088323</link>
    <description> &lt;p&gt;i havent figured it out myself this time lol &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;
&lt;p&gt;i thought by setting the value of a cookie to 0 or null that it would never expire? i could be wrong but i read it somewhere&lt;/p&gt;
&lt;p&gt;basically i have a poll on my site that will be changed every couple weeks or so. i only want people to be allowed to vote once for that poll so i was just going to set the cookie to never expire. i could just set it to expire in a year, or a month or somthing but im not sure how to do that?&lt;br /&gt;
do i change the 1 to however many hours and the 3600 to however many seconds?&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Aug 2001 17:16:57 +0000</pubDate>
 <dc:creator>whitty</dc:creator>
 <guid isPermaLink="false">comment 1088323 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-php-poll#comment-1088321</link>
    <description> &lt;p&gt;Did you figure it out?&lt;/p&gt;
&lt;p&gt;I&#039;m not sure if you can set a cookie to live forever. I&#039;ve always set the cookie for 1 year, and reset the cookie on each visit.&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Aug 2001 15:44:29 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088321 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-php-poll#comment-1088291</link>
    <description> &lt;p&gt;(i typed the link wrong, my bad)&lt;br /&gt;
lol sorry to do this to you guys again but i figured it out.&lt;br /&gt;
again im reaall sorry. i just couldnt figure it out but i kept working on it and finally got it.&lt;br /&gt;
as you can tell im new to server side stuff but im getting it. &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;
&lt;p&gt;i do have a question though&lt;br /&gt;
im going to use cookies so people cant vote more then once&lt;/p&gt;
&lt;p&gt;here&#039;s the cookie&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$cookie_expire &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// hours&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (!isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$action&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$action&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$action&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;==\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;vote\&quot; &amp;amp;&amp;amp; isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vote_for&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cookie_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;AdvancedPoll\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$poll_id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp; if(!isset($&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cookie_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cookie_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;1\&quot;, time()+(3600*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cookie_expire&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;));&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;i want to make it so it never expires. i know i have to use either &quot;0&quot; or &quot;null&quot;&lt;br /&gt;
but im not sure how to change this part so it reflects the above 0&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;setcookie&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cookie_name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;1\&quot;, time()+(3600*&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cookie_expire&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;));]&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Aug 2001 05:59:35 +0000</pubDate>
 <dc:creator>whitty</dc:creator>
 <guid isPermaLink="false">comment 1088291 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-php-poll#comment-1088288</link>
    <description> &lt;p&gt;link does&#039;t work for me&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Aug 2001 05:09:31 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088288 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-php-poll#comment-1088273</link>
    <description> &lt;p&gt;hey thanks. i will be sticking around here, its a very active forum with lots of smart people. lol&lt;/p&gt;
&lt;p&gt;actually though im having another problem.&lt;br /&gt;
if you check out the site&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.blueballprodutions.f2s.com/index.php&quot; class=&quot;bb-url&quot;&gt;http://www.blueballprodutions.f2s.com/index.php&lt;/a&gt;  you&#039;ll see the poll but it wont let you vote&lt;/p&gt;
&lt;p&gt;everything works fine untill one person votes and then it dosent give the option to vote anymore&lt;br /&gt;
it says &quot;sorry you can only vote once&quot; to everybody. even if they havent voted&lt;/p&gt;
&lt;p&gt;any ideas on whats causing it to do this?&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Aug 2001 00:36:24 +0000</pubDate>
 <dc:creator>whitty</dc:creator>
 <guid isPermaLink="false">comment 1088273 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-php-poll#comment-1088266</link>
    <description> &lt;p&gt;Okay, then, glad you fixed your problem.&lt;/p&gt;
&lt;p&gt;Welcome to TWF, hope you stick around. &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>Wed, 29 Aug 2001 22:32:21 +0000</pubDate>
 <dc:creator>mjames</dc:creator>
 <guid isPermaLink="false">comment 1088266 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
