QNX Logging of User Logins and Logouts

Anyone know what is takes to get this done in QNX4.25? I heard there is a way by adding something into the .profile? Please let me know.
Thanks in advance!!

Also, how about logging out users after a certain amount of idle time?

maybe this answers your questions :
qnx.com/developers/qnx4/qnx4 … ?code=9652

regards Helge