I have a web application built with Asp.Net web-form, but the issue I am having is that, when user Logged in and later Log out, if he click the back button on browser immediately, it throws Error message as follows:
Object reference not set to an instance of an object.
So how do I position my code so that when user Log in and log out, on clicking back button on browser it will not throw Error message, instead it will redirect to Log in page?