Asp列出session所有变量
2010-08-06 14:00
162 查看
<%@ Language=VBScript %> <% Option Explicit %> <% Response.Write "在你的程序中一共使用了 " & Session.Contents.Count & _ " 个Session变量<P>" Dim strName, iLoop For Each strName in Session.Contents '判断一个Session变量是否为数组 If IsArray(Session(strName)) then '如果是数组,那么罗列出所有的数组元素内容 For iLoop = LBound(Session(strName)) to UBound(Session(strName)) Response.Write strName & "(" & iLoop & ") - " & _ Session(strName)(iLoop) & "<BR>" Next Else '如果不是数组,那么直接显示 Response.Write strName & " - " & Session.Contents(strName) & "<BR>" End If Next %>
相关文章推荐
- ASP所有的Session变量获取实现代码
- asp遍历所有服务器变量
- 如何取得所有的Session变量?
- 如何在ASP.NET环境下长期保存ASP.NET页面的session变量
- 在两个ASP.NET页面之间传递变量 (QueryString,Session和Server.Transfer)
- 使用SQL Server存储ASP.NET Session变量
- asp循环获取URL地址中的所有变量参数值
- ASP 判断Session变量是否存在的4种方法
- 用反射+特性列出所有的枚举变量及其描述信息,绑定到DropDownList上。
- [转]用反射+特性列出所有的枚举变量及其描述信息,绑定到DropDownList上。
- Silverlight中如何与Asp.Net交换变量,取得Session的值问题?
- 如何取得所有的Session变量
- 在 JavaScript 核心语言中,全局对象的预定义属性都是不可枚举的,所有可以用 for/in 循环列出所有隐式或显式声明的全局变量
- 列出main包内的所有变量情况
- V$OPEN_CURSOR (本视图列出session打开的所有cursors)
- PostgreSQL 列出所有表名和数据库名, 删除session被占用的数据库
- ASP.Net Web.Config文件配置之配置Session变量的生命周期
- 用反射+特性列出所有的枚举变量及其描述信息,绑定到DropDownList上
- 「提高」在Asp.Net网站里列出所有登录用户和游客