Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Login hook/ log off hook

I'm working on a project and I need to send a message at login and logoff of a users. However the tricky part is that I need to run the server while there are no clients logged on to the system.

So I would like to run that application as a service, but I need to catch the logon log, off hook, for each user that logs on to the machine. Any info for Windows or Mac would be great.

Thanks, mike
[417 byte] By [hexaplus] at [2007-11-11 8:13:57]
# 1 Re: Login hook/ log off hook
Any sugestions on where to look?
hexaplus at 2007-11-11 22:36:07 >
# 2 Re: Login hook/ log off hook
Need a bit more details.

Is your main application J2EE based?

If it is a J2EE based app on a server which supports JMX, you can write a service which continuously polls your file system for any logging info.
arul at 2007-11-11 22:37:05 >
# 3 Re: Login hook/ log off hook
Thanks! I'll look into it.
hexaplus at 2007-11-11 22:38:08 >