How to refresh page data on user logout

HI

I have been able to setup a account creation form all works well and takes the user to a page which displays their details.

I have added a Logout button and seems to work, but the user data on the page does not refresh no matter what I try.

So the user data should disappear if the user is logged out. It works if I manually refresh the page.

I have tried a click event to reload the user data Action, but that does not work the user data is still shown.

I am sure I am doing something wrong but I am unable to reload the page data and from reading you can do this without reloading the whole page?
I have been following the webinar here: https://youtu.be/1NLr9eHowaI Webinar 3 Part 1 - Login, Logout, security provider

It also seems in the webinar it didn’t work either using a click event.

Can anyone share with me the correct way to refresh page data when a user logs in or out of the same page?

Cheers!

Community Page
Last updated: