Implementing Dynamic Breadcrumbs using Sessions
<p>I'm trying to implement dynamic breadcrumbs on my site - the requirements are as follows:</p>

<pre>
1) Cars Section:
url: /mysite/directory/cars
breadcrumb: Home > Directory > Cars

2) Cars Search Results:
url: /mysite/directory/cars?query-string
breadcrumb: Home > Directory > Cars > Search Results

3) Product Details Page:
url: /mysite/mercedes-benz
referrer: none
breadcrumb: Home > Mercedes Benz

4) Product Details Page derived from Cars Section:
url: /mysite/mercedes-benz
referrer: /mysite/directory/cars
breadcrumb: Home > Directory > Cars > Mercedes Benz

5) Product Details Page derived from Cars Search Results:
url: /mysite/mercedes-benz
referrer: /mysite/directory/cars?name=mercedes-benz
breadcrumb: Home > Directory > Cars > Search Results > Mercedes Benz
</pre>

<p>The very last item in the breadcrumbs trail is just a standard text, all the items before it are links.</p>

<p>Also in the above example 'Cars' is just a category - products can belong to multiple categories. So for example Mercedes Benz may also belong to category "Transport".</p>

<p>I probably need to set the session variable on parts 1 and 2 and retrieve the variables in parts 4 and 5. This is straightforward enough, but the thing I'm worried is that it's most likely going to conflict between multiple windows/tabs. What is the best way of doing this? </p>
