I am setting a session variable in every page depending on if a user clicks a button or not. The pages work fine if I use the navigation button that I have on the designed website as I am setting the session variable in one of the taglibs. But when I use the forward and back button of the browser, the session variable does not hold the value as the page is loaded from cache. I tried clearing out the cache using meta tags in JSP but still it appears to me that the pages are not getting loaded as my printlns are not printing anything. Can someone suggest some other way to handle this. I tried the clearing out of cache but that does not work. Any help will be highly apperciated.
I could not get the requirement properly but I am still answering to best of my knowledge about your question.