title: Float number suffix when saving $_SERVER['REQUEST_URI'] as cookie
body: <p>I'm trying to do a simple thing in PHP and saving the currently visited page to a cookie by saving the value of <code>$_SERVER['REQUEST_URI']</code>.</p>
  
  <p>However, the cookie value always include a float number such as <code>path/to/file.php?0.449978803506048</code>. If the URI includes parameters these are stripped and replaced by the float number.</p>
  
  <p>Visiting the page <code>path/to/file.php?param=value</code>:</p>
  
  <pre><code>&lt;?php
      $this_page = $_SERVER['REQUEST_URI']; 
      echo $this_page; // returns: path/to/file.php?param=value
  
      setcookie("last_page", $this_page, time()+3600);
  
      echo $_COOKIE['last_page']; // returns: path/to/file.php?0.449978803506048
  ?&gt;
  </code></pre>
  
  <p>The number changes for each page reload which leads me to belive it has something to do with a timestamp. Is there a PHP setting or something that I need to be aware of? The result is the same in different browsers and I've also tried to encode the value in base 64 before saving the cookie but the result is still the same.</p>
  
  <p>I'm usually not programming much PHP so it might be a very simple solution to this, but I cannot find it!</p>
  
  <p>Running on a Apache 2.2.20 with PHP Version 5.3.6 on Ubuntu Server 11.10 (GNU/Linux 3.0.0-16-server x86_64).</p>