I IIS, i need to use the Global.asa file and another page named page2.asp to display all the session id's and the time they visited the website.
Im unsure of whether i need to use the session or application object, whether to use variables etc..
So far i have only come up with this, but of course it doesnt work:
Global.asa
Code:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
sub Application_OnStart()
DIM sessionStarted()
sessionStarted= TIME()
Application("sessionTime") = SessionStarted
end sub
Server.Transfer("page2.asp")
</SCRIPT>
page2.asp
Code:
<html>
<head>
<title>List of sessions</title>
</head>
<body>
<%
LocalArray = Application("sessionTime")
Response.Write(LocalArray) & "<br />"
%>
</body>
</html>
any help would be muchly appreciated.