Forums

This topic is locked

Global.asa

Posted 19 Jul 2002 05:37:30
1
has voted
19 Jul 2002 05:37:30 aegis kleais posted:
Anyone know how to define a variable as global? I want all the SUB procedures in my global.asa to be able to reference this one variable without assuming it's some kinda local variable to the SUB

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])

Replies

Replied 19 Jul 2002 19:38:21
19 Jul 2002 19:38:21 Ken Dobson replied:
This <i>MAY</i> be what you're looking for.

www.coveryourasp.com/Application3.asp

www.coveryourasp.com/Application4.asp

I haven't use the global.asa yet, but by putting a variable in the global.asa file, doesn't that make it global?



Edited by - warmonger on 19 Jul 2002 20:12:37
Replied 19 Jul 2002 23:47:04
19 Jul 2002 23:47:04 aegis kleais replied:
Well, I think that all functions in a GLOBAL.ASA file are global, but I needed to find out if a variable defined in the Global.asa file had to be IN or OUT of a function to be classified as FULLY Global. Know what I mean?

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 20 Jul 2002 00:54:54
20 Jul 2002 00:54:54 Ken Dobson replied:
If it's anything like programming, I would venture to say that it would have to be defined out of the function, or more precise, before the function.
Replied 20 Jul 2002 18:53:23
20 Jul 2002 18:53:23 aegis kleais replied:
I'm finding that the Session_OnEnd Sub won't fire if you use Session information in it. All I need it to do is store the SessionID I want removed first and foremost in a global variable, then I wouldnt mind the Session being abandoned, bucause the global var will contain the now expired session info

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 24 Jul 2002 05:26:00
24 Jul 2002 05:26:00 Tony Chronopoulos replied:
Doesn't the Session_OnEnd Sub execute only when a session expires and NOT abandonned? (I dunno, I'm new to all this and still learning! hehhe)



<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm finding that the Session_OnEnd Sub won't fire if you use Session information in it. All I need it to do is store the SessionID I want removed first and foremost in a global variable, then I wouldnt mind the Session being abandoned, bucause the global var will contain the now expired session info
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

___________________
Lunch is on me! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replied 24 Jul 2002 07:04:03
24 Jul 2002 07:04:03 aegis kleais replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Doesn't the Session_OnEnd Sub execute only when a session expires and NOT abandonned? (I dunno, I'm new to all this and still learning! hehhe)
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Exactly. So storing a procedure that uses the Session ID to query the ActiveUser Table for deletion won't work because when it fires on the expire, the SessionID doesn't exist anymore.

I'm trying to figure out a way that I can store the SessionID into a variable when they login and then have that variable available for the Session_OnEnd Sub so it can remove the user from the DB.

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])

Reply to this topic