please refer to the link
why does the value of session variable remain even after all the code of destruction?
in the above the problem is that login function made by me fails, as the browser is displaying the cached version of the page, which also I DO NOT KNOW WHY is capable of performing all the functions for a certain time limit, after which it REALIZES THAT ITS CACHED!!
so,
how to remove the cached version of the website,
OR
how to tell DO NOT MAKE MY COPY IN CACHE!!!
by using c#
Most you can do is add expires meta tag to the pages that you don’t want browser to cache
Or alternately in ASP.NET after Page tag add
In code behind for C#
For more information refer to http://msdn.microsoft.com/en-us/library/06bh14hk(v=VS.100).aspx
A further detailed article here http://www.mnot.net/cache_docs/
EDIT: Updated after comments from Alxandr