User is logged in workflow is not working

Hello. May i ask you for help? The workflow that triggers when user is logged in is not working. I recorded a video to explain No name - 30 June 2025 | Loom

I can pay for this if you know the solution. Have a good day.

1 Like

Move this workflow to the popup itself. When the page is loaded and the user is logged out, show the popup.

When the user is logged in, close the popup, or just use the workflow when logging in to hide it.

Add a conditional statement on the main content to hide it when the popup login is visible.

This should work more reliably.

But the thing - it’s working when page is loaded. It’s not working when page is already loaded and popup is visible. User is logged in, but the workflow is not running.

Hello Forever life, having gone through your video, I will like to help you fix the popup display as explained. Are you open to jump on a quick call. Let me know if you will be available.
Thanks

is the login popup still showing if you refresh the other tabs after login?

1 Like

No, if i refresh page the popup is hidden and workflow is running.

so the page does not check the login status unless you manually tell it to. Ok, try to add a recurring workflow that runs periodically to check status and either show or hide popup as required if the popup is visible.. something like this. maybe you can remove the show popup action if yours already does that.

1 Like

Thank you, i did tried this. It’s just ignoring this workflow, even if i will do it every one second. Here is video No name - 3 July 2025 | Loom

that is because in your case the popup shows already in all tabs when the user logs out. The page does not hide the popup unless the login status is checked while the popup is visible and the user isn’t interacting with it. So refresh the page every x seconds if the popup is visible and the input is empty. the popup should be hidden then.

Popup does not shows, that’s the problem. The workflow is not running when user is logged out.

Did you tried the thing you suggested? It’s not working, as it’s shown in a video

I did and it worked for me. but if it still doesn’t for you, there is an easier way, you can add a session control field to the user and edit that when you log in or out.

  • when you login, set session to yes.
  • when you logout of all sessions, set it to no.
  • make a recurring workflow that refreshes the page when current user session is no.
    like this:
    forums5725-ezgif.com-video-to-gif-converter
1 Like

i can help you.
pls check DM

I tried your method and it seems like there is no reaction No name - 7 July 2025 | Loom

I don’t understand how it’s work for you, since if current user is logged out we can’t access the field for that user

it’s exactly the point. since the page doesn’t refresh it doesn’t know the user is logged out, so you use a field in the user datatype which you update when you log out in another tab to check for login state and refresh if required.

“Current User that is logged in” is different user than “Current User logged out”. They have different records and different unique_id.
So in theory the situation may happen when user is logged in, but has a field where he is logged out.

we are using a session property of user. we are not using logged in or logout statuses because again, the page does not know that status without refresh. If you like you can share an editor link I can set up for you. but otherwise I really can’t explain it more.

I understand what you talking about. The problem with your solution - it might not always work. Please review the video. You will clearly see - logged out user is not logged in user, it’s 2 different id’s Logged in and logged out user | Loom
If there are 2 different records in database - logged out and logged in - you don’t know which one’s field you modified.