Author: Bhushan Lolge | Posted on: 7/23/2008 4:32:37 AM | Views : 397

I am using ASP.NET 2.0 login control and form Authentication in my application.

I have applied security to my application in following case by setting this statement in Page_load event of all pages.

Response.Cache.SetCacheability(HttpCacheability.NoCache)

Case 1 :  When I login(login.aspx) to website using Login Control and redirects to another page(Default2.aspx) , when i click on browsers back button then     Login page opens. On this login.aspx when I click on browsers forward button it goes to Default2.aspx, but I don't want to go it to Default2.aspx. It should ask login again.

It works using above cache setting and Forms Authentication.

But for few other pages it shows me error that

webpage is expired

 Most likely cause:


The local copy of this webpage is out of date, and the website requires that you download it a ...

Go to the complete details ...