Set new session variable when user hits the browsers back button (and the page is not refreshed)?
<p>I am managing my category variables using php session.</p>

<p>If a user clicks like this:</p>

<ol>
<li>index</li>
<li>category (category sets a session variable)</li>
<li>product  (product fetches that variable)</li>
</ol>

<p>After, if the user, instead of pressing the <strong>home link</strong> (which refreshes the index page), presses the <strong>browser's back button</strong> this happens:</p>

<ol>
<li>the user just reached the index page with the category variable set earlier;</li>
<li>if he clicks on a product directly from the index, the old category is getting displayed.</li>
</ol>

<p>Basically, 
Is there a way to set new session variables when a user hits the browsers back button (and the page is not refreshed)?</p>
