在asp.net中注销后清除高速缓存 [英] Clear cache in after log out in asp.net
本文介绍了在asp.net中注销后清除高速缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在asp.net中注销页面后如何清除缓存?
How to clear cache memory after log out page in asp.net?
推荐答案
在注销代码块中使用以下几行..
use the below lines in you log out code block..
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
请尝试以下链接...
从asp.net中的缓存中删除项目
清除asp.net中的缓存的代码示例
清除缓存
Pls try below links...
Delete items from cache in asp.net
Code sample for clearing the cache in asp.net
Clear cache
这篇关于在asp.net中注销后清除高速缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文