Is there some indicator available in PHP to find out, if the user arrived at the current page by pressing the Back-Button of his browser?
This is the current setup of the page: The user currently navigates the website via a search or category page that uses ajax based filters. When clicking a filter, the result part of the search page is updated and the active filters are stored in the session.
Everytime the user starts a new search or a new category page a GET parameter is sent with the url, that makes the website remove the filters.
The problem is now, that when the user applied some filters, then clicks on a result and then uses the back button, the page treats this, as if a new search or category was started (removes the filters), since the GET Parameter is still in place.
My idea is to somehow detect, that the user navigated to this current page by using the back button and to disable the reset of the session in this particular case, so the user sees his filtered result list again. If this was possible somehow within the PHP code, it would safe me plenty of time.
You can try this to see how the navigation to your page was done.
PerformanceNavigation.type [DEPRECATED but link for you to see an overview]
Up to date for navigation type