UDT - User Logoff Events

Does anyone know if there is a way to capture a user logoff event?

We want to be able to audit the length of time a user is logged into a system.

Thanks