How to prevent for user logged in twice (to different browser or machines)

In my System user logged in over combobox with cakephp 4.4.11 and db Session and apcu as well.
I try for days to prevent user not to logged in twice at the same time on different systems.
Did somebody got a fine solution or do I have to reinvent the wheel?

Thanks in advanced
Michael

I found a solution. Thanks anyway.

Could you share your solution in case it might help others?