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

Anybody have a slick way to tell if people are on the system?

Does anybody have a slick way to tell if people are on the system. I have a
login so I can tell if a user is authenticated. What I've done now is make a
dataset that I store in the application variable and everytime somebody
loads a page, I update that dataset ( based on sessionid ) with the time the
user last loaded a page. When it reaches more the 20 minutes, I make the
assumption that the people must have gone elsewhere.

Just wondering if there is a slicker/better way to do this.

Any thoughts.

TIA - Jeff.
Nov 8 '07 #1
5 1151
Not really.
--
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Mufasa" wrote:
Does anybody have a slick way to tell if people are on the system. I have a
login so I can tell if a user is authenticated. What I've done now is make a
dataset that I store in the application variable and everytime somebody
loads a page, I update that dataset ( based on sessionid ) with the time the
user last loaded a page. When it reaches more the 20 minutes, I make the
assumption that the people must have gone elsewhere.

Just wondering if there is a slicker/better way to do this.

Any thoughts.

TIA - Jeff.
Nov 8 '07 #2
RB
Peter Bromberg [C# MVP] wrote:
Not really.
Agreed. The only addition you might make is a "Sign out" button, that
will do the same thing as the 20 minute timeout. However, you'll need to
keep the timeout, as you cannot rely on your users clicking on the
sign-out button (unless you stand behind each one with a mallet ;-)

Cheers,

RB.
Nov 8 '07 #3
"RB" <ow************@mailinator.comwrote in message
news:04******************************@eclipse.net. uk...
Agreed. The only addition you might make is a "Sign out" button, that will
do the same thing as the 20 minute timeout. However, you'll need to keep
the timeout, as you cannot rely on your users clicking on the sign-out
button (unless you stand behind each one with a mallet ;-)
I would actually go further and say that having this sort of functionality
(or anything like it) is actually worse than not having it at all because it
is so unreliable...

E.g. 1,000 people log in at 09:00 on a Monday to check something very
quickly, and then by 09:01 999 of them have closed their browser and gone
somewhere else...

However, until just after 09:20, it will appear as if there are 1,000
current users...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 8 '07 #4
The web is stateless. This means the phone is hung up after every single
page call. After a call, the only means of keeping a user's context is
through session information, which is a kludge. If one examines it
objectively, there really is no state, as both sides are using persistent
data to store the information, but it appears as if there is state.

Having said that, without some form of beacon in the page, which would
entail either an ActiveX control, a Silverlight 1.1 control (beta still) or
a Java applet, there is no way to maintain communication. Even if you use
these techniques, you are not guaranteed a spot in line unless the piece on
the client side has a Dispose() method to send a beacon that it is being
killed. If you ask me, that is a lot of programming for little benefit.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Mufasa" <jb@nowhere.comwrote in message
news:uB**************@TK2MSFTNGP04.phx.gbl...
Does anybody have a slick way to tell if people are on the system. I have
a login so I can tell if a user is authenticated. What I've done now is
make a dataset that I store in the application variable and everytime
somebody loads a page, I update that dataset ( based on sessionid ) with
the time the user last loaded a page. When it reaches more the 20 minutes,
I make the assumption that the people must have gone elsewhere.

Just wondering if there is a slicker/better way to do this.

Any thoughts.

TIA - Jeff.


Nov 8 '07 #5
Actually our software includes a remote control boxing glove on an arm that
will swing out and hit the customer when they are stupid. Unfortunately not
everybody installs it though.

I have a sign out button that they can use but they never do (including
myself).

Someone else said the problem could be that 20 minutes after 1000 people log
in, it will still show them as logged in. When I print my list of current
users, I print how long since they did anything so I can take that in to
account.

Thanks everybody.

J.

"RB" <ow************@mailinator.comwrote in message
news:04******************************@eclipse.net. uk...
Peter Bromberg [C# MVP] wrote:
>Not really.

Agreed. The only addition you might make is a "Sign out" button, that will
do the same thing as the 20 minute timeout. However, you'll need to keep
the timeout, as you cannot rely on your users clicking on the sign-out
button (unless you stand behind each one with a mallet ;-)

Cheers,

RB.

Nov 8 '07 #6

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

Similar topics

8
by: D. Alvarado | last post by:
Hi, I have this arr $months = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); and I would like to take this...
303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
0
by: gunaselvas | last post by:
Can u tell me how to configure the build options in Visual Slick Editor on Project Property tabs
4
by: ±èµ¿±Õ | last post by:
Tell me why the symbol "_" use in the Library? For example, char *_itoa( int value, char *string, int radix ); But We use function "itoa(value,string,radix) "only. I want to know the...
3
by: Catalin Porancea | last post by:
Can anybody tell me what is wrong with this code? I would really appreciate some help here. The data grid has 4 columns (0,1,2,3), and 1 is not visible. Whenever I click Edit, I get this error:...
14
by: tristant | last post by:
Hi All, Our client has just decided to migrate from SQLServer2k to Oracle 9i on AIX. We are considering what development tool / language as the application/ front end platform. We almost...
12
by: Terry Olsen | last post by:
VB.NET doesn't seem to go over very well with the recreational users out in inet land. I've got a few "free" programs that I put out for people to use, and I get emails like "it'd be a nice...
1
by: Allen Maki | last post by:
/* I am trying to practice multidimensional array in a managed class using dynamical allocation. If I tried to compile the following codes, I would get the under mentioned c2440 error...
0
by: Stephen Plotnick | last post by:
I use Visual Slick Edit now with my COBOL develpoment and was wondering if it can be used as an editor directly in VB 2005. I went ot their website and see it is supposed to work but I can not tell...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.