UBB.Dev
Posted By: zombiefro One of you has to know...Global.asa - 02/17/2001 1:10 PM
I have the following in my Global.asa file:


function Session_OnEnd ( )
{

DBInitConnection ( );
oConnection.Execute ( 'UPDATE Members SET Status='Offline' WHERE Email='' + sEmail + ''' );
DBReleaseConnection ( );
Application.Lock ( );
Application ( 'ActiveUsers' )--;
Application.Unlock ( );

}

The UPDATE SQL is not working? Anyone able to shine some light in this area or tell me the possible reasons a Global.asa file might not work.

Need and answer ASAP.
Posted By: JohnM Re: One of you has to know...Global.asa - 02/17/2001 6:09 PM
Not very experienced in Javascript.

Are you sure the SQL is correct?
I.E. Can you make a page to execute that and it'll work?
Is that sub actually being called?

Also remember that sessions are terminated after a user leaves the site for a length of time (don't remember now...)
Posted By: zombiefro Re: One of you has to know...Global.asa - 02/17/2001 6:21 PM
Hi John smile

As far as I know the SQL is perfect. That sub/function is called when the user session times out, which is 20 minutes by default on my server. I believe it is also called when the session is abandoned.

Thanks for helping me.

Can anyone else do some troubleshooting?
© UBB.Developers