# Before/while authenticating, disconnect old connection if avaliable

**URL:** <https://forum.heroiclabs.com/t/before-while-authenticating-disconnect-old-connection-if-avaliable/3434>\
**Category:** Runtime Framework\
**Tags:** authentication\
**Created:** [January 19, 2023, 4:53am UTC](https://forum.heroiclabs.com/t/before-while-authenticating-disconnect-old-connection-if-avaliable/3434 "2023-01-19T04:53:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [January 19, 2023, 10:37am UTC](https://forum.heroiclabs.com/t/before-while-authenticating-disconnect-old-connection-if-avaliable/3434/2 "2023-01-19T10:37:13Z")

</div>

Hello @ahamed, please have a look at this thread: [Preventing users from having multiple sessions - #6 by novabyte](https://forum.heroiclabs.com/t/preventing-users-from-having-multiple-sessions/36/6), it should give you what you need.

Best.

---

_[View the full topic](https://forum.heroiclabs.com/t/before-while-authenticating-disconnect-old-connection-if-avaliable/3434)._
