Print Page | Close Window

global.asa

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14281
Printed Date: 30 March 2026 at 10:06am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: global.asa
Posted By: anishtain4
Subject: global.asa
Date Posted: 17 March 2005 at 9:32am

hi

I try to use the global.asa but It don't work I made it in the root and the code in it is this

<SCRIPT language="VBScript" RUNAT="server">
sub session_OnStart
 Application.Lock
 Application ("No") = Application ("No") + 1
 Application.UnLock
End Sub
Sub Session_OnEnd
 Application.Lock
 Application ("No") = Application ("No") - 1
 RemoveAll(Application("Users"), ", " & Request.Cookies ("Online")("UserName"))
 Application.UnLock
End Sub
</SCRIPT>
 
can any one help me? 



Replies:
Posted By: dpyers
Date Posted: 17 March 2005 at 9:49pm
What are the results you are expecting, and what are the results you got?
 
I don't think you can request.cookie in the session_OnEnd as no session exists at that point..


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: anishtain4
Date Posted: 18 March 2005 at 4:38am
the problem is there that the session_onstart don't work also
and I want to write a code to show the online users. am I must save username in the session?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net