How to disable browser cache when logout takes place. I used:
<meta http-equiv="cache-control" content="no-cache"> <!-- tells browser not to cache -->
<meta http-equiv="expires" content="0"> <!-- says that the cache expires 'now' -->
<meta http-equiv="pragma" content="no-cache"> <!-- says not to use cached stuff, if there is any -->
But still I am getting the previous page , when I click logout.
This should work on most browsers, but to prevent Firefox from caching, you need an additional two headers
Cache-Control=no-storeandCache-Control=must-revalidate. Therefore try:See how can i prevent firefox caching.