asp程序 关于用application显示统计在线用户不能显示的问题
我的站点文件夹为mychat,在里面有两个文件,一个为global.asa,一个为index.asp//global.asa源文件
<SCRIPT Language="VBScript" Runat="Server">
sub Application_OnStart
application("chater_num")=6
application("chater_list")=0
application("chater_word")=0
End sub
sub session_onstart
session.timeout = 20
session("start") = now
application.lock
application("chater_num")=application("chater_num")+1
application.unlock
end sub
sub session_onend
application.lock
application("chater_num")=application("chater_num")-1
application.unlock
end sub
</SCRIPT>
//index.asp文件
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>刘双喜和陈大芝的聊天室</title>
</head>
<body>
<H2 align=center>欢迎来到老公老婆聊天室</H2>
<table width="75%" border="1">
<tr>
<td align="center">老公老婆聊天室</td>
</tr>
<tr>
<td>聊天人数:<font color="#cc0000">5<%=application("chater_num")%></font></td>
</tr>
<tr>
<td>聊天姓名:
<select name="select">
<%=application("chater_list")%> </select></td>
</tr>
<tr>
<td>选用昵称
<input type="text" name="user_nickname"></td>
</tr>
<tr>
<td><input type="submit" value="登陆"></td>
</tr>
</table>
</body>
</html>
但是在<%=application("chater_num")%>不能显示,请问是为什么?