Prevent multiple login

Hi Yii community,

I need your help in solving this issue. I have to implement logic to prevent multiple login with same credentials. If anybody developed before…please share your thoughts or code which will help me to solve my problems.