【发布时间】:2017-09-23 13:29:13
【问题描述】:
每当我在标准浏览器(Firefox、Chrome...)中清除 cookie 时,我的网站都会给我不同的价值(例如:value="c04f8d84708f9865f4e04802c51c2f90")。
但是当我使用客户端时,我总是得到相同的值,我的代码:
WebClient client1 = new WebClient();
client1.Headers.Add("Cache-Control", "no-cache");
client1.CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.NoCacheNoStore);
string html = client1.DownloadString("website");
client1.Dispose();
如何清除所有数据/cookie,以便获得不同的价值?
【问题讨论】: