# What's the purpose of Current User "is logged in"?

**URL:** <https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773>\
**Category:** Need help\
**Created:** [August 26, 2024, 2:14am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773 "2024-08-26T02:14:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomanon](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@randomanon](https://forum.bubble.io/u/randomanon)\
**Post date:** [August 26, 2024, 2:14am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/1 "2024-08-26T02:14:26Z")

</div>

My understanding of Current User is that it applies to anyone browsing your app, even if they don’t have an account. Is the only purpose of this operator to denote an “active session?” If I want to actually put a condition for “users who have signed up,” would that require using a Role field instead (e.g., only when Current User is Active)?

---

<div class="post-metadata">

**Author:** ![msgiblin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/msgiblin/32/119904_2.png) [@msgiblin](https://forum.bubble.io/u/msgiblin)\
**Post date:** [August 26, 2024, 2:34am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/2 "2024-08-26T02:34:55Z")

</div>

> [@randomanon](#):
>
> My understanding of Current User is that it applies to anyone browsing your app, even if they don’t have an account.

You are correct, but ‘is Logged In’ specifically means they do have an account and have actually logged in.

---

<div class="post-metadata">

**Author:** ![randomanon](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@randomanon](https://forum.bubble.io/u/randomanon)\
**Post date:** [August 26, 2024, 6:54am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/3 "2024-08-26T06:54:53Z")

</div>

Is there documentation about this?

Edit: In case someone sees this thread in the future and is confused like I was:

[Data Sources | Bubble Docs](https://manual.bubble.io/core-resources/data/data-sources)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 26, 2024, 10:58am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/4 "2024-08-26T10:58:55Z")

</div>

> **[Operators and comparisons | Bubble Docs](https://manual.bubble.io/core-resources/data/operations-and-comparisons#user-type)**
>
> Aggregating, manipulating and comparing data.

---

<div class="post-metadata">

**Author:** ![randomanon](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@randomanon](https://forum.bubble.io/u/randomanon)\
**Post date:** [August 27, 2024, 8:26am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/5 "2024-08-27T08:26:49Z")

</div>

This isn’t very descriptive.

> **…is logged in**
> 
> Returns `yes` when the current user is logged in.

Do you vouch for what @msgiblin said?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 27, 2024, 10:18am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/6 "2024-08-27T10:18:41Z")

</div>

Yes… it’s simple…

If the current User is logged, then the expression ‘Current User is logged in’ will return true.

If they are not logged in, then it will return False.

Im not sure how much more descriptive it could be?..

---

<div class="post-metadata">

**Author:** ![randomanon](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@randomanon](https://forum.bubble.io/u/randomanon)\
**Post date:** [August 27, 2024, 11:03am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/7 "2024-08-27T11:03:58Z")

</div>

A first time user browsing your app is also technically a “Current user” and they are also technically “logged in” (workflow actions using Current user will still work even if they don’t have an account), that’s why I’m asking. Confusingly, years ago they mentioned changing the language to “Current user is Signed Up,” but I guess they reverted this change?

[Bubble Language Change: the “is logged in” condition for a User will now be “is signed up” - Announcements - Bubble Forum](https://forum.bubble.io/t/bubble-language-change-the-is-logged-in-condition-for-a-user-will-now-be-is-signed-up/174549)

Seems like they went ahead with this proposal. Not sure why it’s hidden in a forum post instead of in the manual:

> [@Bubble Language Change: the "is logged in" condition for a User will now be "is signed up"](https://forum.bubble.io/t/bubble-language-change-the-is-logged-in-condition-for-a-user-will-now-be-is-signed-up/174549/11):
>
> FYI - One change we are considering based on the feedback so far is maintaining the old language of “Current User is logged in / is logged out” when the data source is Current User and then “is signed up” or “has an account” for when the data source is a generic user. The reasoning behind this proposed change is that when referencing a Current User, while the underlying logic is checking for an account, its really telling us if the user is logged in. This is because a user has to be logged in f…

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 27, 2024, 11:13am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/8 "2024-08-27T11:13:18Z")

</div>

> [@randomanon](#):
>
> A first time user browsing your app is also technically a “Current user” and they are also technically “logged in”

That’s incorrect.

> Seems like they went ahead with this proposal. Not sure why it’s hidden in a forum post instead of in the manual:

‘Current User is logged’ in and ‘User has an account’ (which is what those forum posts are referring to) are 2 different things.

It’s not possible to tell whether a User, other than the Current User is logged in or not. That only applies to the Current User.

For all other Users ‘Has an account’ will return true if that User has an account.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/e/ce70892827f6b29aaa762651e504012183764926.png)

---

<div class="post-metadata">

**Author:** ![randomanon](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@randomanon](https://forum.bubble.io/u/randomanon)\
**Post date:** [August 27, 2024, 11:21am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/9 "2024-08-27T11:21:10Z")

</div>

This cleared it up, you’re right:

### 

> Signed up users
> 
> If a user has signed up to Bubble, a permanent entry is created in the database using this email and password. The value of `Current user is logged in` will return `yes`.

[Data Sources | Bubble Docs](https://manual.bubble.io/core-resources/data/data-sources)

What was confusing me was this section:

> **The temporary user behaves like a signed-up user** , in the sense that you can modify them, and it will be saved to the application database. **Imagine you have a workflow that asks a user for their age before they sign up and saves it to the ‘Current user’. If the user effectively signs up within three days, the permanent user that will be created then will have the same ‘age’.**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 4, 2024, 2:14am UTC](https://forum.bubble.io/t/whats-the-purpose-of-current-user-is-logged-in/336773/10 "2024-11-04T02:14:26Z")

</div>

Closed on November 4, 2024, 2:14am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
