Global.asa

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
gingel
-


Joined: 09 Apr 2004
Posts: 25

PostPosted: Thu Sep 06, 2007 11:57 am    Post subject: Global.asa Reply with quote

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 View user's profile Send private message ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Sep 19, 2007 12:27 am    Post subject: Re: Global.asa Reply with quote

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 View user's profile Send private message Send e-mail
gingel
-


Joined: 09 Apr 2004
Posts: 25

PostPosted: Fri Sep 21, 2007 7:55 pm    Post subject: Re: Global.asa Reply with quote

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 View user's profile Send private message ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Sep 29, 2007 2:32 am    Post subject: Re: Global.asa Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group