title: Disable user login from multiple devices at the sametime, in Ejabberd/XMPP
body: <blockquote>
  <p><strong>Environment:</strong></p>
  <p>Ejabberd Version : 16.04</p>
  <p>Smack-android-4.1.0</p>
  </blockquote>
  <p>I'm working on an Android chat application. Currently, same user credentials can be used login from multiple devices.</p>
  <p>The current scenario is as follows:</p>
  <pre><code>1. User logs in into the app in device A
  2. Using the same username and password, the user logs successfully into the app in device B
  3. Now device A says, it is disconnected, but continue the chat in device B
  </code></pre>
  <p>However, according to the given requirement, it should behave like this:</p>
  <pre><code>1. User logs in into the app in device A
  2. Using the same username and password, when the user tries to log in from device B, it should not allow it. 
  (Since he is already logged in from device A)
  </code></pre>
  <p>Would be glad to hear your solutions/ideas on this. Thanks in advance.</p>