使用Asp.net删除Cookie,谷歌浏览器的缓存 [英] remove Cookies,cache of google chrome using Asp.net

查看:346
本文介绍了使用Asp.net删除Cookie,谷歌浏览器的缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hy,

i从网络摄像头捕获图像并在服务器文件夹中存储它由于保存了cookie,缓存而没有在图像框上发声,



所以请告诉我如何在asp.net中删除cookie缓存内存的谷歌浏览器

Hy,
i capture image from webcam and stor in server folder bt it didnt shw on image box due to save of cookies, cache memory,

so plz tell me hw to remov cookies cache memory of google chrome in asp.net

推荐答案

浏览器appilcation对客户端计算机没有多少控制权。 (它不应该!!!否则我们将丢失所有有价值的数据!!!! :))



我们可以设置已创建的cookie的expiery通过我们的网站(域名),但我们无法将其删除。按照MSDN上的文章来做这件事。



http://msdn.microsoft.com/en-us/library/ms178195.aspx [ ^ ]



我们可以通过以下代码设置缓存的expirey

browser appilcation does not have much hold over client computer.. (it shouldn't have!!! otherwise we will lose all our valueable data!!!! :))

we can set expiery of the cookies which are created by our website (domain), but we can not remove it. follow the article on MSDN to do this.

http://msdn.microsoft.com/en-us/library/ms178195.aspx[^]

We can set expirey of cache by following code
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
Response.Cache.SetNoStore();




如果解决了你的问题,
标记为答案。



mark as answer if solves your problem.


这篇关于使用Asp.net删除Cookie,谷歌浏览器的缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆