CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 List of User Logged

Print topic Send  topic

Author Message
edwilson

Posts: 3
Posted: 01/22/2005, 4:21 AM

Hello

How can I do a page with all users logged?

I'm using VB.NEt + SQL 7

Thank's
View profile  Send private message
peterr


Posts: 5971
Posted: 01/22/2005, 11:55 AM

Such information doesn't exist anywhere unless you update some table when users login. Then you could display the results from that table.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
edwilson

Posts: 3
Posted: 01/23/2005, 6:04 AM

Thank's Peter.
But can I do update on table when user logout?
For example, user close the browser or open another link?

Ed
View profile  Send private message
peterr


Posts: 5971
Posted: 01/23/2005, 11:12 AM

This depends. There may not be a 100% reliable method, but some methods were discussed here on the forums, if you do some searching.
As a backup you can also assume that anyone who logged-in more than x hours ago or has been inactive for x minutes has already logged out.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Tuong Do
Posted: 01/23/2005, 6:58 PM

Hi Edwilson,

You can use the session on end event to update the table by utilising the
session id



"edwilson" <edwilson@forum.codecharge> wrote in message
news:841f3aee273564@news.codecharge.com...
> Thank's Peter.
> But can I do update on table when user logout?
> For example, user close the browser or open another link?
>
> Ed
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Benjamin Krajmalnik
Posted: 01/30/2005, 10:33 PM


Along the lines of what Peter mentioned, I use a connection table which has
a "last accessed" datetime field.
Every page load checks to see that the connetion for the user is still valid
(exists). If not, I log the user out. Also, the function clears all
"stale" connections (any connection which has not been updated in a given
time window).

Benjamin Krajmalnik
Posted: 01/30/2005, 10:38 PM

Where do you find that event?
I just looked for it and could not find it anywhere.

peterr


Posts: 5971
Posted: 01/31/2005, 2:36 AM

I also wasn't aware of such event, but found some traces of it here:
http://www.google.com/search?hl=en&lr=&q=.net+%22session+end+event%22
and here is something probably different but maybe useful in some way:
http://www.google.com/search?hl=en&q=SF_NOTIFY_END_OF_NET_SESSION
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.