NetTalk Central

Author Topic: Who´s loggedin now  (Read 3335 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1872
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Who´s loggedin now
« 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Who´s loggedin now
« Reply #1 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