selva kumar

selva kumar

  • NA
  • 557
  • 189k

How to set Document Expiration?

Feb 10 2014 1:17 AM
Hi friend's I want to set page expiration by clicking back button after log out..
Can anyone give me some reference i have used below code on page load but it does not work out...

  Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        Response.Cache.SetNoStore();

Answers (1)