Logout not working

On to the next on the series of I am clueless :slight_smile:

I can't get the logout to work

This is what I have

  1. Global Security Provider
  2. API - Logout using the Security Provider Logout
  3. Button on the frontend
  4. App flow when you mouse click on the button to run the serverconnect of logout

This is want I get when I try to run the logout api direct in the browser

image

This is my page and can confirm I am logged in as I am pulling data from my logged in user api

Thanks

Are you 100% sure that:

Is:

I'm asking this, because:

Generally the logout doesn't have an output value, so identity should not be there.

Also, the logout is from the correct security provider?

Can you show the page code and your server api?

Here is my serverconnect action/api

Here is my my on mouse click action when you click on the logout button

  1. The security provider of the security logout is the correct?

  2. Can you test incognito window to see if some old cache/cookie is stored and complicating things?

  3. Can you disable/delete the browser go to step and when you execute the flow inspect and check what the header status (should be 200) and response of sc is? In my case:

Here is the logout

In in incognito mode it still is logged in.

I can't figure out how to do the third thing you asked.

I just tried it different browser and all of them are showing that am I logged in however I have never logged in on those browsers

Are you sure you're logged?
The API where you get the info:

Has a security restrict on it? Like:

1 Like

This video may help you when you go to the relevant section

1 Like

Ben, I have followed your video several times with no luck. So, I am starting fresh starting from the beginning on this whole series.

1 Like

Here is the response finally figured out how to get it

Do you have the internal checkbox clicked for the browser goto() step?

For logout actions it must NOT be checked or the layout page is not refreshed and the browser session is not cleared

Hello sometimes the logout procedure take some time (milliseconds) and if you use browser.goto it would not logg you out before the browser has moved to another page. Try a "wait 100 ms" before browser goto or make a server connect for the logout and use the "success" event on that server connect to start browser.goto.

Heu @sevenrice Curious what was your solution? Because I too am having the same exact issue and I followed the video instructions myself.

I will get redirected to the login page after I click which tells me the Flow is working, but the exact Logout is not.

I have the server connect on the page layout. I have no internal clicked on links. I have tried both 'Output Action Step' on and off with same result.

Hey @DannyDan

Can you show us the logout serverconnect that you call here:

Sure thing @famousmag

I mean show us the steps inside the actual logout api

What are you doing inside the logout api

Also, you wrote:
"I will get redirected to the login page after I click which tells me the Flow is working, but the exact Logout is not."

How you understand that the user is not actually loged-out?

Please read from the top of this topic all the suggestions

I never got it working, I used Brian's getting started tutorial to get it working. I don't know if my boutique tutorial is corrupted or not. I will play with it some today.

Hi @sevenrice,

I am unable to replicate what you are seeing. However, it looks to be a session handling-related issue.

Can you check your session handler settings, such as which store you are using for session handling? Like Redis or Memory. Also, please check the same in your config.json and user_config.json files.

1 Like

@famousmag

Sorry about that misunderstanding, yes. As you can see I have only setup an EXECUTE action and haven't touched any of the other settings (SETTINGS, INPUT) as this is how it was done in the video.

I know i am not being logged out because I manually enter the root address in my browser or click the back arrow or by refreshing the page it still lets me into member only area.