NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on February 25, 2009, 07:56:51 AM

Title: Who´s loggedin now
Post by: Alberto on February 25, 2009, 07:56:51 AM
Hi,
Any way to know the name of the users loggedin?
I know I can loop the session queue,
may be saving the session id in the user record when he logs in
and then looping the queue and fetchin them by session id?
Any other way?

Other Q: any way to save when the system disconnects automatically a user?

Thanks
Alberto
Title: Re: Who´s loggedin now
Post by: Bruce on February 25, 2009, 10:05:32 PM
Hi Alberto,

There are lots of ways - I'd probably lean towards looping through the session Queue.

The _DeleteSession method is called (in the WebServer procedure) when a session expires. So you can embed code in here if you want to be "alerted" when a session expires.

Cheers
Bruce