<%@ Language=VBScript %>
<% Option Explicit %>
您的sessionID号是:<%=session.sessionid%><br>
<%
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
Response.Write "在你的程序中一共使用了 " & application.Contents.Count & _
" 个application变量<P>"
%>
罗列全部session和application
原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]
相关文章:
- 同一个用户不允许同时登陆两次(2007-11-15 1:17:43)
- asp重定向-response.redirect和server.transfer(2007-10-24 9:18:30)
- vbscript Replace 函数(2007-10-21 4:33:2)
- vbscript:日期格式常数(2007-10-10 7:30:49)
- For...Next 语句(2007-10-4 9:43:2)
- Chr 函数(2007-10-2 9:21:42)
- vbscript InputBox 函数(2007-9-24 8:25:19)
- CCur 函数(2007-9-20 6:10:44)
- vbscript:字符串常数(2007-9-19 1:12:22)
- While...Wend 语句(2007-9-12 4:58:27)
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
