Audit Login and Logout
Seems like a perfect use case for Login Auditing. This will require a restart of the SQL Server. 

Then, I would use xp_readerrorlog to view the results. Something like:

xp_readerrorlog, @p1 = 1, @p3 = 'Login'