473,396 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

global asa problem..?

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
************************************************** **************************
***********************************
Jul 19 '05 #1
1 1625
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.


"Savas Ates" <sa***@indexinteractive.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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
************************************************** ************************** ***********************************


Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ron | last post by:
I have a web project compiled with the new "Web Deployment Projects" plugin for VS2005. I'm deploying the web project to one assembly and with updateable option set to ON. When I'm running the...
9
by: CDMAPoster | last post by:
About a year ago there was a thread about the use of global variables in A97: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/fedc837a5aeb6157 Best Practices by Kang...
8
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
8
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
1
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.