# \[New Feature\] Logging out other sessions

**URL:** <https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200>\
**Category:** New features\
**Created:** [March 2, 2018, 10:15am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200 "2018-03-02T10:15:55Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [March 2, 2018, 10:15am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/1 "2018-03-02T10:15:55Z")

</div>

We just added a feature that will help keeping your account more secure. You can now log out all sessions (except the current one) from the account page.

We built this feature as a Bubble action, since our app is built on Bubble, so you can also use this functionality in your apps as well, but using the action “Log out other user’s sessions”.

![47%20AM](https://us1.discourse-cdn.com/bubble/original/3X/5/d/5d5e7c4503fb2e208f788568572bec3502651873.png)

---

<div class="post-metadata">

**Author:** ![soeren](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/soeren/32/1726_2.png) [@soeren](https://forum.bubble.io/u/soeren)\
**Post date:** [March 2, 2018, 10:40am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/2 "2018-03-02T10:40:48Z")

</div>

Great. How about logging out just one particular user session? Right now, the token generated for a user is valid forever.

---

<div class="post-metadata">

**Author:** ![nathanjoe755](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@nathanjoe755](https://forum.bubble.io/u/nathanjoe755)\
**Post date:** [March 2, 2018, 10:56am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/3 "2018-03-02T10:56:28Z")

</div>

i faced this issue many times when i was working on frontaccounting erp

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [March 2, 2018, 12:38pm UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/4 "2018-03-02T12:38:49Z")

</div>

We do not offer this right now.

---

<div class="post-metadata">

**Author:** ![lottemint](https://avatars.discourse-cdn.com/v4/letter/l/fbc32d/32.png) [@lottemint](https://forum.bubble.io/u/lottemint)\
**Post date:** [March 2, 2018, 12:57pm UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/5 "2018-03-02T12:57:44Z")

</div>

Generated token is valid for 365 days.

---

<div class="post-metadata">

**Author:** ![jasondiehl07](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jasondiehl07/32/50629_2.png) [@jasondiehl07](https://forum.bubble.io/u/jasondiehl07)\
**Post date:** [March 2, 2018, 4:02pm UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/6 "2018-03-02T16:02:51Z")

</div>

When is that **2 factor authentication** to login to your bubble console coming ; )

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [March 2, 2018, 4:03pm UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/7 "2018-03-02T16:03:26Z")

</div>

We’re working on it 🙂

---

<div class="post-metadata">

**Author:** ![trevor](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@trevor](https://forum.bubble.io/u/trevor)\
**Post date:** [March 2, 2018, 11:11pm UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/8 "2018-03-02T23:11:11Z")

</div>

Thank you Emmanuel and Team! This is exactly what the doctor ordered 😉

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [March 20, 2018, 12:59pm UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/9 "2018-03-20T12:59:41Z")

</div>

We just added this

> [@\[New Feature\] Two-Factor Authentication](http://forum.bubble.io/t/new-feature-two-factor-authentication/26199):
>
> This is a feature that we’re very excited to announce. Bubble now supports 2-factor authentication, and this applies both to your Bubble account and to apps built on Bubble! With two-factor authentication turned on, anyone logging in as you to an app will need to have access to a mobile device linked to your account. We support using the [Google Authenticator](https://support.google.com/accounts/answer/1066447) and [Authy](https://authy.com/download/) apps to link your device (though other TOTP apps should work as well). Bubble Account For your Bubble account, we can go to yo…

---

<div class="post-metadata">

**Author:** ![zelus\_pudding](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zelus_pudding/32/68250_2.png) [@zelus\_pudding](https://forum.bubble.io/u/zelus_pudding)\
**Post date:** [September 24, 2021, 8:27pm UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/10 "2021-09-24T20:27:55Z")

</div>

This feature only allows logging out the current user from all other devices. Need ability to log X user out of all of their devices - say in case they are a security vulnerability and need to have access immediately revoked (but we don’t want to delete their user because we need to keep records of past actions). If I can’t currently do that, when is that feature going to be built? Or is the absolute best way always going to be to have a workflow on every page that waits for a revoke event on the current user (i.e their role changes to `deleted`) which logs them out?

---

<div class="post-metadata">

**Author:** ![mital.patel](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mital.patel](https://forum.bubble.io/u/mital.patel)\
**Post date:** [October 3, 2024, 3:05am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/11 "2024-10-03T03:05:49Z")

</div>

Is there a way to display a message when the user is logged out before kicking them out of the session? Im exploring options and the one im at right now is running a “Do every 5 seconds” workflow, but thats using WU when its not necessary.

---

<div class="post-metadata">

**Author:** ![autom8](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@autom8](https://forum.bubble.io/u/autom8)\
**Post date:** [October 3, 2024, 4:06am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/12 "2024-10-03T04:06:41Z")

</div>

@mital.patel how are you triggering the log out?

---

<div class="post-metadata">

**Author:** ![mital.patel](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mital.patel](https://forum.bubble.io/u/mital.patel)\
**Post date:** [October 9, 2024, 3:39am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/13 "2024-10-09T03:39:24Z")

</div>

I was using the bubble default logout action, but It didnt give me much flexibility, so now ive added in my own session management system. I think i got it they way i wanted.

---

<div class="post-metadata">

**Author:** ![autom8](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@autom8](https://forum.bubble.io/u/autom8)\
**Post date:** [October 9, 2024, 3:52am UTC](https://forum.bubble.io/t/new-feature-logging-out-other-sessions/25200/14 "2024-10-09T03:52:05Z")

</div>

I was working on my own session management system too but its adding unnecessary clutter and WU to my core app so got rid of it.

Checkout these two plugins.

1. [[PLUGIN] User Online Monitoring - 0 WU! - #13 by TheSimpleLabs](https://forum.bubble.io/t/plugin-user-online-monitoring-0-wu/327892/13)  
This has some nice session management features and doesn’t incur any WU (sometimes minimal from what I read).

2. [[PLUGIN] Real-Time Notifications](https://forum.bubble.io/t/plugin-real-time-notifications/343350)  
This plugin shows real time notifications to users without creating any database items so no WU again.
