in reply to Script Unload??
Another idea is to have a "logoff" button that calls your script so
that it knows when the person logs off. As far as encouraging/forcing
them to actually *use* that button, that's social engineering. You
could punish those who don't, reward those who do, or just
ask real nice.