I want to do a logout action in my session. When I press logout it is redirected to a new page and the session is invalidated. In the previous page I am using validation logic to validate my session. When I press back button I get the previous page which should not be displayed if the session is invalidated. So I used following headers to remove chaching in the browser.
Thank you Ben and Bear for your kind consideration.
It solved it was a programmatic error done by me. Now I am facing another problem. When I keep on pressing the browser back button after removing the cache I get a page not available massege. (Offline displayed page of IE) I removed the cache of all the pages so they are working fine. What have I done wrong to get such a result.