473,387 Members | 1,512 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,387 software developers and data experts.

Application and user count...

Hi,

I want to show number of active users (login users) on my web page.
Creating the number of activate users is easy. I increased an
application variable (Application("numOfUsers")) by one when a user is
logged in. But a problem comes up when decreasing this application
variable. I made this decramention in session_end but for a long time
there is no change on the value of application variable. I think this
problem is caused by session life property... How can provide the
application variable to decrease immediately when a user leaves the
site?
Nov 18 '05 #1
1 1066
Consider user leaves the site in two ways:
1. As soon as server finishes with every response.
2. Clicks logout button.

Since not all of them will choose 2, you should create a mechanism to
control a list of logged in users with a timeout for the records. For
example (if you use a DB table for users, not Windows accounts), you could
create a column in the table for the last login date and time, update it
every login and create a view with the criteria to compare last login date
and time with the current date and time minus 5-10 minutes (you decide).

For the Windows accounts, almost the same if you could create a table
somewhere, even as the virtual table without an actual DB and keep that
table as the application variable, ar saved as XML file.

"Bar??" <ae*******@yahoo.com> wrote in message
news:e3**************************@posting.google.c om...
Hi,

I want to show number of active users (login users) on my web page.
Creating the number of activate users is easy. I increased an
application variable (Application("numOfUsers")) by one when a user is
logged in. But a problem comes up when decreasing this application
variable. I made this decramention in session_end but for a long time
there is no change on the value of application variable. I think this
problem is caused by session life property... How can provide the
application variable to decrease immediately when a user leaves the
site?

Nov 18 '05 #2

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

Similar topics

3
by: Luca Mariano | last post by:
Hi people, I'm developing the first PHP Application Server. It can run PHP classes that extends the HttpPhplet interface with the same methods of javax.http.HttpServlet. The phplet are like...
5
by: Mark Fisher | last post by:
I have a Java desktop GUI application that the user can run multiple times. In order to keep one instance of the application distinct from another, I'd like to put the instance number of the...
9
by: Art | last post by:
Can I update Application("SomeVariableName") on server A in response to user's action on server B? There is no problem in updating the same variable on server B, of course, but we would like both...
1
by: Al Murphy | last post by:
Folks, I'm trying to write a little VB.NET Web image-essay application. You know the ones - a "next/previous" button etc... However due to the fact that I am new to VB.NET I have bugs. Could...
1
by: Alpha | last post by:
I have a Window based application that shows up still running in the task manager when I close it. It reaches the "this.close" statement and then it stops at the "}" at the section of the...
6
by: KS | last post by:
I have made a WebForm with log ON/OFF off users. There is a label that shows the total count off users logged on stored in Application("UserCount") It works fine if the users logs out WITH THE...
3
by: Mike Johnson | last post by:
I have the following code in form1 and when the application starts this sub is called to check for a path if not found a message box is displayed and then gives the user an option to end the...
2
by: sudhaoncyberworld | last post by:
Hi Techies, I have created Setup & Deployment project and installing a windows application from that. Now i want to restrict the user to install my application only upto 3 times. After that...
8
by: Anthony Smith | last post by:
I am looking into building a web application and one of the things I want to do is to make sure the user is logged in. I know I can do this by checking the session for a user object or something...
1
by: Aegixx | last post by:
Ok, extremely wierd situation here: (I'll post the code below, after the explanation) I've got a Windows application (.NET 3.5) that has a single Form with a DataGridView embedded. The user...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.