Hi all,
Thought would share this info with everyone.
Recently in one of the projects I was working on, Wynsum Homes, we had this strange issue with “Back” button. Yeah; the same old button with javascript:history.go(-1) code in it.
We had a search result page and the detail page of the concerned record in this site. But once we were in the detailed page, when clicked on the “Back” button, we used to get the session expired error in IE, though it worked in FF.
Debugging further, found out that it was actually the session values that was being used in the search result page that was causing the error.
Researching further on this issue, I struck upon a possible fix in one of the articles found online.
Giving the following header on the required page right after calling session_start(),
header("Cache-control: private");
we can actually direct the user to access the previous page with the values fetched before.
Thus I could direct the user from the detailed page of a particular record to the search result page.
Regards
Shyam