does anybody know, if there is allready a hook, which checks, if the user is allready logged (should not check the user, but the session, if allready one is logged in to the manager on the same machine, same browser) to the manager and throws a warning or lets run another callback or something like that?
The same thing for the other way, if the machine is allready logged to another context, when trying to login to the manager.
Doesn't one of these give you that, or am I misunderstanding your question?
if ($mod->user->hasSessionContext('mgr')) {}
if ($user->hasSessionContext('mgr')) {}
You could throw in a JS dialog that would allow aborting the submit.