Click here to Skip to main content
16,016,678 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi All,

i am using ADFS2.0 with Asp.net 3.5.i am creating one Asp.net Relying party application, within this Relying application i am using
one proteced page (modify.aspx) when i click browser back button from this page (modify.aspx) then it throw an error "A potentially dangerous Request.Form value was detected from the client (wresult="<t:RequestSecurityTo...")."
so i used validateRequest="false" on @page directive and this issue has been resolved.
but i am facing another issue now my master page is not load again when i press back button from this page (modify.aspx).
but i was accepting "web page expire" white out page error.
so i am trying to clear browser cache value through below code
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();
and i have also try some other codes from web but this are working only on IE browser but these are not working on FireFox3.5+ version.

please anyone can suggest me how can i get web expire page and clear all caches value in FireFox when browser back button is clicked from a Relying Party application.
thanks in Advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900