Try this code may this will help. Paste this code on masterpage’s load event.
If you are not using master pages then you have to paste this code of all the pages (on load event).
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
On logout
You have to write
Session.Abandon();
Session.Clear();
And redirect to login page.
Code of logout in c#.net
An IT Solution is a purpose and value-driven organization where everyone is empowered to take decisions in line with our culture. We provide a unique environment of freedom, flexibility & trust that allows an individuals potentials to flower; this results in tremendous growth opportunities.Such a culture, naturally, appeals to everyone. We listen, we think and we act. The IT field is all about thought leadership. We invest in thought for you as customers
3 comments:
Code is helpful
thanx
Really code working fine
Post a Comment