ASP.NET 显示所有Cookies, Session, Application

ASP.NET 显示所有Cookies, Session, Application
            // 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 />");
            }

作者最新文章
css 去掉a标签超链接的虚线框的方法, 何去除超链接点击时的虚线?
C# 创建、保存、写入无 bom 的 utf-8 编码文件
ASP.NET aspx 后台代码执行前台js脚本, 弹出消息, 调用函数
ASP.NET aspx 后台代码控制前台显示、隐藏
js 打印功能