title: Unique session between tabs?
body: <p>We have a custom session handler which stores a history of data for pages.  We have a requirement where we need to store and identify unique sessions for every tab/window.</p>
  
  <p>For simplicity let's just say I need a unique string for each tab i.e.</p>
  
  <ul>
  <li>Window A - Tab 1 - ABCDEF</li>
  <li>Window A - Tab 2 - CDEFGH</li>
  <li>Window A - Tab 3 - EFGHIJ</li>
  <li>Window B - Tab 1 - GHIJKL</li>
  <li>Window B - Tab 2 - IJKLMN</li>
  </ul>
  
  <p>I need these strings to be accessible immediately when any link is clicked or when any tab performs a postback.</p>
  
  <p>We have an overly complication solution in place at the moment which generates these unique strings and saves them in the tab name and cookies and uses the window blur/focus events to determine when a page has been navigated away. It works well 'in the lab' but we do get problems with this 'in the wild'.</p>
  
  <p>I guess the most 'reliable' way to do this would be to generate a unique string and place it on the querystring for every page and every URL on that page, that way it would be available immediately as you click on any link or post back, and you could move between tabs / windows freely. However that would take a significant rewrite and I wonder if I'm missing a more straightforward option.</p>
  
  <p>Any suggestions welcome.</p>