logout events triggered on non-standard closing?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

logout events triggered on non-standard closing?

Post by tford »

Does anyone know if the logout events described on p239 of User Manual are triggered when an AwareIM user is timed out by the system or if the user closes out the browser without clicking on Logout in the AwareIM menu?

Thanks,
Tom
Hubertus
Posts: 153
Joined: Sat Feb 11, 2006 2:11 pm
Location: Austria
Contact:

Post by Hubertus »

The LogoutNotification has an attribute IsTimeout. Therefore this notification should also be fired whenever a session times out.
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

Thanks Hubertus,

I suppose then that the AwareIM server would also eventually timeout a user who had abnormally terminated their browser session without an AwareIM logout??

Have you developed a way to see a list of the currently logged in users?

Thanks,
Tom
Hubertus
Posts: 153
Joined: Sat Feb 11, 2006 2:11 pm
Location: Austria
Contact:

Post by Hubertus »

I'd also guess that closing the browser should result in a timeout.

Yes I have such a small solution. What I'm doing is that I create a record "CurrentUser" using a LoginNotification. When the "LogoutNotification" arrives then I delete this user. But since I only compare against the LoginName when deleting I'd also delete old instances of that user if there where any.
This simple setup is only intended for seeing who's online and nothing else.
Post Reply