473,698 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1178
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.com wrote 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.com wrote in message
news:uB******** ******@TK2MSFTN GP04.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.com wrote 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
2189
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 array and build a string of the form "<option value=\"1\">January</option>\n<option value=\"2\">February</option>\n<option value=\"3\">March</option> ...
303
17640
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. Yahoo store was originally written in Lisp. c. Emacs The issues with these will probably come up, so I might as well mention them myself (which will also make this a more balanced
0
276
by: gunaselvas | last post by:
Can u tell me how to configure the build options in Visual Slick Editor on Project Property tabs
4
2442
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 specific reason .
3
1355
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: _____________________________ Specified argument was out of the range of valid values. Parameter name: index Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
14
1709
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 decide to use VB.NET, because current skill is VB 6. Its just more like human resources application and reporting with distributed database. The question is : is there any problem if the UI platform is .NET and the
12
1762
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 utility if it wasn't written in a child's language", or "no way I'm installing the .NET Framework on my PC', "Why don't you use a REAL compiler like GCC, LCC, or Pelles C?". Seems like the attitude is that "REAL" programmers only write programs where...
1
1026
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 message. It is only practice. You may notice that I am not using "private"
0
905
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 if I would be in the VB studio program tiself just using their editor. I'm currently using VB 2003 but will be upgrading in the next week or so. I saw Codewrite but it is not supported anymore and it may not work in VB 2005. I want to use...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8610
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7740
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.