I have a Global.asa that contains this....
Which works fine
I can also use a Global.asa with this...
for an active user counter. However if I put both in the same global.asa I get problems.
Is there a way to combine the jscript and vbscript so they will both run ?
Any help appreciated.
TIA
Code:
<SCRIPT LANGUAGE="JScript" RUNAT=Server>
function Session_OnStart()
{
Session("AppAnnuaireDatabase") = "/Application/asp/Annuaire/annuaire.mdb";
Session("AppAnnuairePermission") = "/Application/asp/Annuaire/ManageAnnuaire.asp";
Session("AppFichesDatabase") = "/Application/asp/fiches/remarques.mdb";
Session("AppFichesPermission") = "/Application/asp/fiches/ManageFiche.asp";
Session("AppProjectDatabase") = "/Application/asp/Project/Project.mdb";
Session("AppProjectPermission") = "/Application/asp/Project/ManageProject.asp";
Session("AppVendorsDatabase") = "/Application/asp/vendors/avl.mdb";
Session("AppTerminologyDatabase") = "/Application/asp/terminology/Terminology.mdb";
Session("AppNNTPStatDatabase") = "/Application/asp/MCR/MCR.mdb";
}
</SCRIPT>
Which works fine
I can also use a Global.asa with this...
Code:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
' Set our user count to 0 when we start the server
Application("ActiveUsers") = 0
End Sub
Sub Session_OnStart
' Change Session Timeout to 20 minutes (if you need to)
Session.Timeout = 20
' Set a Session Start Time
' This is only important to assure we start a session
Session("Start") = Now
' Increase the active visitors count when we start the session
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
Application.UnLock
End Sub
Sub Session_OnEnd
' Decrease the active visitors count when the session ends.
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.UnLock
End Sub
</SCRIPT>
for an active user counter. However if I put both in the same global.asa I get problems.
Is there a way to combine the jscript and vbscript so they will both run ?
Any help appreciated.
TIA