I write logout code and redirect page to login page by
session resetting. But when I click on back of Internet explorer it shows me all page, if I refresh the page then only it shows session expire error.
Is anybody know the solution?
Sounds like caching of some sort, however the page you're going back to should check to see if the session is valid (or exists) and if not then redirect to login page. This will stop people from going back.