title: PHP/JS: How to implement dynamic breadcrumbs? (multi-window/tab compatible)
body: <p>I'm working on a site where we need "dynamic" breadcrumb generation. </p>
  
  <p>Pages within this application are not specific children of the other, so when the user is browsing one of them, I can't simply retrace steps back up. </p>
  
  <pre><code>I could have the following breadcrumbs-like lists: (updated)
  * inbox &gt; message &gt; user profile
  * search results &gt; user profile
  * search results &gt; user profile &gt; new message
  </code></pre>
  
  <p>( FYI; there will be a few dedicated parent pages that will reset the whole stack. Also there will be a check that prevents recursion. )</p>
  
  <p>So... To accomplish this, I have to remember where the user has been, and in what order. I reckon the most elegant and reliable way to do is, is write a mechanism that remembers the user's history in the session.</p>
  
  <p>If I do that though, the whole thing will break when a user opens a new browser window or tab.</p>
  
  <p>To fix that, I could store this data in the querystring. Though different browsers/proxies have different limits of data that can be transferred that way. So, one day, this will probably break as well.</p>
  
  <p><strong>Does anyone have an idea on how to implement this?</strong></p>
  
  <p>Or;</p>
  
  <p><strong>Does anyone know how to reliably identify different browsers windows?</strong></p>
  
  <p>(I'd rather not rely on javascript for this, unless it's my only workable option. I use dojo toolkit for the frontend)</p>
  
  <p><strong>thanks in advance!</strong></p>