title: Which HTTP code should be used when redirecting the user to a new URL based on cookies they have set?
body: <p>I have a few "filter" forms on my site, to let people filter the content they're seeing.  I set a cookie when they select these items, so that their preferences are saved.</p>
  
  <p>When they click on the filters they end up with a URL like</p>
  
  <pre><code>www.example.com/filters/news,sport/
  </code></pre>
  
  <p>I then use the cookies so that if they navigate to </p>
  
  <pre><code>www.example.com/
  </code></pre>
  
  <p>afterwards, they get automatically redirected via PHP's <code>Header</code> function to</p>
  
  <pre><code>www.example.com/filters/news,sport/
  </code></pre>
  
  <p>I do this (changing the URL as well as just changing the content) so that if they want to share a URL with another person, they see the same content.</p>
  
  <p>My question is what should the HTTP code on that redirect be?  I think 307 (Temporary Redirect), but I'm far from sure.</p>