View Source
Go Back to /jang/books/webprog/06asp/example/session/pagehit1.asp
Go Back to WWW sandbox
<%@language=JScript%>
<%title="使用 Application 與 Session 物件來防止計數資料的竄改:方法一"%>
<!--#include file="../head.inc"-->
<hr>

<%
if (Session("PreviouslyOnLine")!=true){
      Application("Counter")++;
      Session("PreviouslyOnLine") = true;
}
%>

<h3 align=center>您是第 <font color=red><%=Application("Counter")%></font> 位貴賓!</h3>

<hr>
<!--#include file="../foot.inc"-->