Before/while authenticating, disconnect old connection if avaliable

Hello @ahamed, please have a look at this thread: Preventing users from having multiple sessions - #6 by novabyte, it should give you what you need.

Best.