计算当前在线人员
论坛计算是用数据表的吗?是~~思路怎么样?这个代码放上服务器怎么没反应啊~~~郁闷~~~~<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("ActiveUsers") = 0
End Sub
Sub Session_OnStart
Session.Timeout = 20
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.UnLock
End Sub
</SCRIPT>
当前在线人数<%=Application("ActiveUsers")%>
什么也没有显示?出个0也好让我开心呀~~~