473,326 Members | 2,133 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,326 software developers and data experts.

Counting online user - w/o global.asa

144 100+
hi,

how to count the number of online user in a website?
i know how to count online user using the global.asa .

for some reasons. if there exists, i prefer another way that doesn't involve creating a global.asa configuration.

thanks in advance
May 10 '08 #1
2 2157
thesti
144 100+
if i choose to use the global.asa way.

what happen if the user close the browser, does the Sub Session_OnEnd will still be run, and the application("users") variable will be decremented ?

thanks in advance.
May 12 '08 #2
DrBunchman
979 Expert 512MB
Hi thesti,

Yes, if the user closes the browser by clicking the cross or using Alt-F4 the Session_OnEnd event will fire.

I'm sorry but I don't know any other way of counting the number of current users although that doesn't mean that there isn't one.

Is there a particular reason why you didn't want to use the Global.asa method?

Dr B
May 12 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: toedipper | last post by:
Hello, I am developing a site using php and mysql and I would like to be able to let visitors know how many other visitors are currently browsing the site i.e. 'There are currently x amount of...
2
by: jack | last post by:
i want to check if a user is online or not,i mean the user use http protocol to access my site,if he close his browser ,how can i know it IMMEDIATELY??so the session can be used here ???? i found...
3
by: Mike D | last post by:
I have this line of code in my global.asa Application("Active") = Application("Active") + 1 I open alot of new IE windows and I have my homepage set to my intranet that contains the above code....
6
by: Dale Atkin | last post by:
As part of a larger project, I need to be able to count the number of lines in a file (so I know what to expect). Anyways, I came accross the following code that seems to do the trick, the only...
9
by: David Poundall | last post by:
I have a thread class and I want to be able to track its usage within an application. FYI the class launches aplications in their own thread when the 'launch' method is called. That works OK ...
5
by: Steph | last post by:
Hi, I would like to be able to know who is actually connected on the website i am creating. The users are stored in a sql server table (to enter, they have to be identified on the login.aspx...
4
by: tperri | last post by:
I've got a user table with a field called Online, and when a user logs in, I set a value in this column to indicate they are online. And in the same fashion, when they click the logout button, I...
2
by: yossimotro | last post by:
Hi guys, I'd like to add a feature of viewing who is online to my website. Right now whenever a user logs on to my website I create a Session variable for him containing his ID. I'd to have...
1
by: R.A.M. | last post by:
Please help. I try to implement counting of apllication users using global.asax this way: <script runat="server"> void Application_OnStart(object sender, EventArgs e) {...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.