by Alex Campbell
Feedback
|
Average Rating:
Views (Total / Last 10 Days):
42883/
110
|
|
|
Why This Is A Bad Idea |
I said at the outset that I thought this whole thing was a stupid idea. There are a couple of reasons:
-
If your website gets decent traffic, an application like this would cripple it because for every new session and every page click, the webserver has to call the database, run a stored procedure...
-
If your website doesn't get decent traffic, why announce it to the world by putting up an "Online Users" page?
-
Even if your website doesn't get much traffic today, what if it one day someone from a high-traffic website links to you (think Slashdot, or CNN). Instead of having thousands of users admiring your prose, design and programming prowess, they will get a Server Busy error because of all the extra load of keeping track of their sessions from this application.
-
Who cares which of your users are online? I don't go to The Register and think, "Wow, it would be really cool if I could have a look at which IP addresses are requesting which URLs on the server at the moment".
Having said all that, I'm sure there are specific applications where this could be useful. I just haven't come across any yet. I would be interested to hear if you do happen to find one. |
|
|
User Comments
Title:
Session.SessionID.ToString());
Name:
Spyros
Date:
2011-10-26 3:19:28 PM
Comment:
Seems not to work on asp.net 3.5 . In global asa Session.SessionID.ToString()); is null. Any idea ?
|
Title:
Download links are broken
Name:
Linu
Date:
2009-12-21 1:33:33 AM
Comment:
The download link is broken, please fix it!
|
Title:
I think it is possible to overcome the database hit issue
Name:
Yasser
Date:
2009-11-16 12:56:51 PM
Comment:
You're right, there is no point in doing a trip to the database on every request. As information about active users is useless once their session expires, I think it is a silly idea to store this information in the database (unless some kind of user online history needs to be stored). One alternative is to keep all logged in users in memory and do an in-memory lookup rather than a database lookup. The cleanup tasks are also performed on the online users collection object in memory.
|
Title:
Bad idea ?!!! are you kidding me
Name:
Vex
Date:
2008-11-09 3:51:31 PM
Comment:
When is the last time you checked out myspace.com and facebook.com . People want to know which ones of their friends are online and they want to chat to them. that's one of the main interactive features of any social network website.
|
Title:
Why this could be useful
Name:
Sharky
Date:
2008-01-19 11:31:05 PM
Comment:
one use is to see who is online to engage in an online chat. I think MySpace does this. There is a built in ASP.Net 2.0 function that shows you the number of users online but no built in query to show you who they are.
|
Title:
Code names mixed
Name:
Frank
Date:
2007-09-17 8:16:37 AM
Comment:
Just an FYI. The links for the zip files are backwards. CS is under VB and vice versa.
Great info tho, just what my customer wants. Same as David Allen said, small site (100 users tops) and the admin's want to be able to see who's logging in as well as who's sharing their logins.
I had no idea how this would be done and you've knocked off a lot of time figuring it out on my own.
Thanks, Frank
|
Title:
Why this is a good idea
Name:
David Allen
Date:
2005-08-02 10:43:21 PM
Comment:
Your concerns about performance impact are legitimate; I share them. But in enterprise applications (not high-volume, public applications), where users are known and from a limited pool of users, and you support them, then this can be very handy. Respectfully, davidkallen at yahoo dot com (email munged to prevent spam)
|
|
|
|