asp教程 簡單在線用戶統計代碼
這代碼是用了asp apliction 與session實例的哦
<script language="vbscript" runat="server">
sub Application_onStart
application
application("use_online")=
application
end sub
sub application_onend
application
application("use_online")=
application
end sub
sub session_onstart
session("file_path")=request
end sub
sub session_onend
session("file_path")=""
end sub
sub Application_onStart 這是統計開始
application
application
sub session_onend 結束統計
From:http://tw.wingwit.com/Article/program/net/201311/14326.html