global asa problem..?

S

Savas Ates

i have table to understand which user is online or offline...


when a user enter the system i check the my field as 1

when a user quit the site i want to make my field =0

for this i used global.asa Sub Session_OnEnd and Sub Application_OnEnd
both.

Sub Session_OnEnd 'Runs when a user's session times out or quits
your application

when a user leave the site i think in global asa this events trigger..i also
session.timeout features..but it doesnt work.. what is the my fault?


my codes
****************************************************************************
***********************************
Set baglantim=Server.Createobject("ADODB.Connection")
Outpost="PROVIDER=SQLOLEDB;Initial Catalog=friends;User Id=sa
;password=;Data Source=localhost"


baglantim.open outpost
sxx = sql="UPDATE users set status= 0 WHERE userid = 'savas';"
baglantim.Execute(sxx)

End Sub





Sub Application_OnEnd
Set baglantim=Server.Createobject("ADODB.Connection")
Outpost="PROVIDER=SQLOLEDB;Initial Catalog=friends;User Id=sa
;password=;Data Source=localhost"


baglantim.open outpost
sxx = sql="UPDATE users set status= 0 WHERE userid = 'savas';"
baglantim.Execute(sxx)

End Sub
****************************************************************************
***********************************
 
N

name

You can't de facto, however may be de jure.

You can reserve a connection or resource on your server.

An entry that stands for memory space (on the server)

You can not 'force' a static relationship from either end.

That's where the REQUEST comes in.

A way to communicate and come to a mutual conclusion about
continuation for a result.
-----------------------------------------------------

Not like trying to blowing up a remote machine per ELECTRICITY.

What was the idea when they developed the and the current Internet ?

====================================

Everything else is "believe system" or "digital nervous system".

" WHERE userid = 'savas' "

Yupp, make generations laugh, no chance.

Even lexicalically trying "saveas", won't .

Kapisch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top