User session for single location

Hello Friends,

Help me to configure session for user to allow login from single location only.

Basically I want prevent login for those users who is already login from one location.

I’m using CDbSession. Please help me to resolve this issue.

And one more thing is:

What database will be best to use for CDbSession table, is SQLite or MySQL?

Still I’m using SQLite for CDbSession and MySQL for whole application.

Thanks