發(fā)布時(shí)間:2018-02-01 09:58 作者:獨(dú)孤劍 閱讀:1268
// Session Response.Write("Session的所有值:<br />"); foreach (string obj in Session.Contents) { Response.Write(obj.ToString() + ":" + Session[obj] + "<br />"); } // Cookies Response.Write("Cookies的所有值:<br />"); for (int i = 0; i < HttpContext.Current.Request.Cookies.Count; i++) { Response.Write(HttpContext.Current.Request.Cookies.Keys[i] + ":" + HttpContext.Current.Request.Cookies[i].Value.ToString() + "<br />"); } // Application Response.Write("Application的所有值:<br />"); for (int i = 0; i < HttpContext.Current.Application.Count; i++) { Response.Write(HttpContext.Current.Application.Keys[i] + ":" + HttpContext.Current.Application[i].ToString() + "<br />"); }
微信打賞, 微信掃一掃
支付寶打賞, 支付寶掃一掃
如果文章對(duì)您有幫助,歡迎給作者打賞