How Can I restrict simultaneous logins for same user

Hi,

How Can I restrict simultaneous logins for same user in the courses?

Thanks