I have started session("visitorID") in global.asa in order
to keep track of how many users are on our site at any
given time, trouble is I can't seem to call the session
while on another page.
As I am relatively new to asp I'll post both the setting
of the session and the call to it on the other page below
any and all help is appreciated.
Global.asa reads:
Sub Session_OnStart
Session("Start") = Now
Application.lock
Application("visits") = Application("visits") + 1
intTotal_visitors = Application("visits")
Application.unlock
Session("VisitorID") = intTotal_visitors
Application.lock
Application("Active") = Application("Active") + 1
Application.unlock
End Sub
Search.asp reads:
<td width="128" valign="top" align="center">
There are
<%
Response.Write(Session("VisitorID"))
%>
active connections.
</td>
Just because you can, it doesn't mean you should
to keep track of how many users are on our site at any
given time, trouble is I can't seem to call the session
while on another page.
As I am relatively new to asp I'll post both the setting
of the session and the call to it on the other page below
any and all help is appreciated.
Global.asa reads:
Sub Session_OnStart
Session("Start") = Now
Application.lock
Application("visits") = Application("visits") + 1
intTotal_visitors = Application("visits")
Application.unlock
Session("VisitorID") = intTotal_visitors
Application.lock
Application("Active") = Application("Active") + 1
Application.unlock
End Sub
Search.asp reads:
<td width="128" valign="top" align="center">
There are
<%
Response.Write(Session("VisitorID"))
%>
active connections.
</td>
Just because you can, it doesn't mean you should