|
| |
|
|
KeithG
Posts: 92 From: Irving TX Irving, Texas, USA Status: offline
|
Session Variables - 4/4/2001 16:48:00
Using server variables I am able to display on any page how many users are currently logged into the site. I have seen somewhere but now cannot find how to display who the online users are, ie. username or something to that effect. Anyone? Thanks.
|
|
|
|
Vince from Spain
Posts: 658 From: Madrid Spain Status: offline
|
RE: Session Variables - 4/5/2001 20:30:00
Hi Keith, I may be wrong about this, but I think that ordinarily you can't get information about a users username. In theory, there is the server variable LOGON_USER, which you can access by Request.ServerVariables("LOGON_USER") However, this is only set if anonymous access to your web is disabled, which it won't be for internet applications as the IUSR_machinename (anonymous) account is used by default for access. The LOGON_USER is very handy for intranet use if you were planning to use it in that environment.All the best Vince
------------------ Internet Business Solutions S.L.(Spain)
|
|
|
|
Spooky
Posts: 26606 Joined: 11/11/1998 From: Middle Earth Status: offline
|
RE: Session Variables - 4/5/2001 20:54:00
I did have a link, it was either aspcode.com, asp101.com or 15seconds.comObviously now I cant find it  But, you will only tell which users are on if you can perform a lookup of their name (via LOGON_USER or database lookup) Otherwise, they will remain anonymous (but you can count how many) ------------------ Spooky "I am Spooky of Borg. Prepare to be assimilated, babycakes!" Subscribe to OutFront News Database / DRW Q & A The Spooky Login!
|
|
|
|
markjlawrence
Posts: 119 From: Belfast Northern Ireland Status: offline
|
RE: Session Variables - 4/6/2001 13:09:00
Hi Keith,I have a site administration page for checking database size, modifying and deleting records etc. Being able to tell how many users are accessing my databases would be really handy for when I want to take them offline to make changes. Any chance of a link to more info on this? Thanks, Mark.
|
|
|
|
KeithG
Posts: 92 From: Irving TX Irving, Texas, USA Status: offline
|
RE: Session Variables - 4/6/2001 15:06:00
MarkAre you using server variables? If so let me know and I will forward the code, it's quite simple. If you are not using server variables, it will take a little more work... Keith
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|