View previous topic :: View next topic |
Author |
Message |
gingel -
Joined: 09 Apr 2004 Posts: 25
|
Posted: Thu Sep 06, 2007 11:57 am Post subject: Global.asa |
|
|
Hi,
i'm trying to use the Global.asa file to do a check on how many users are on-line.
i have some trouble of getting this file to work.
where do i need to put the Global.asa?
i noticed there is a file like that in the activehtml folder under the folder AHTML.
the code that i need to put in the global.asa is:
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
Application("ActiveUsers") = 0
End Sub
Sub Application_OnEnd
'nothing needed here for this example
End Sub
Sub Session_OnStart
Application.lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
Application.unlock
End Sub
Sub Session_OnEnd
Application.lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.unlock
End Sub
</script>
can you please help me?
Thank you
Erez. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Sep 19, 2007 12:27 am Post subject: Re: Global.asa |
|
|
gingel wrote: | Hi,
i'm trying to use the Global.asa file to do a check on how many users are on-line.
i have some trouble of getting this file to work. |
What kind of trouble are you experiencing? Is it an error message or a misbehavior? Please give us as much details as possible to help us help you. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
gingel -
Joined: 09 Apr 2004 Posts: 25
|
Posted: Fri Sep 21, 2007 7:55 pm Post subject: Re: Global.asa |
|
|
aprelium wrote: | gingel wrote: | Hi,
i'm trying to use the Global.asa file to do a check on how many users are on-line.
i have some trouble of getting this file to work. |
What kind of trouble are you experiencing? Is it an error message or a misbehavior? Please give us as much details as possible to help us help you. |
it's not giving me an error, it's just don't work. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Sep 29, 2007 2:32 am Post subject: Re: Global.asa |
|
|
gingel wrote: | it's not giving me an error, it's just don't work. |
We suggest directing your question to ActiveHTML authors (SeliSoft) as they are better experts in ASP than we are. But the problem here is that either global.asa is not being executed (have you configured the directory of that ASP application in ActiveHTML mappings?) or it is a programming problem. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|