title: Cookie with multiple expiration dates
body: <p>I am setting a cookie, with a 60 day expiration time. The cookie sets which TOWN the user has selected for our site. We also want to have a popup window open upon page loading ... but want that to happen every week (and have the cookie check if "it's been over two weeks"). </p>
  
  <p>We are trying to avoid setting TWO cookies. I assume I can do this by checking how long 'til the cookie expires, then figure out when the start date was (based on the $number_of_days), and then calculate 2 weeks from the start date, and THEN see if the date/time has passed. However, my php knowledge is pretty limited. Wondering if anyone has done this before and can show me how...  I just need a variable outputted states whether 2 weeks has passed or not (i.e. $openpopup=1);</p>
  
  <p>I am using the following code for my cookie (single expiration date)...</p>
  
  <pre><code>$number_of_days = 60 ;
  $date_of_expiry = time() + 60 * 60 * 24 * $number_of_days ;
  if(isset($town)) { 
      // Set Cookies
      setcookie( "towns", $town, $date_of_expiry, "/" ); 
  } else {
      // Del Cookies
      unset($_COOKIE['towns']);
      // empty value and expiration one hour before
      setcookie('towns', '', time() - 3600);
  }
  </code></pre>