I’m having trouble with:
Is there a way to keep login information in a global variable so that the pages of the site display in a different way depending on whether the customer is logged in or is just a visitor ?
Working in
Wix Editor
Site link
What I’m trying to do
I would like that logged in visitors have one option more on several pages of my site. The option is hidden, and if the user is a registered user, then the option appears (the option is for instance a button which opens a popup).
What I’ve tried so far
I have tried to create a session variable, to use the masterPage.js, and other ways, but I don’t succeed to keep the information when I navigate from page to page
Extra context
Here is an example : the ? button has to be displayed only if a member is connected. I am able to display it one time when I connect myself, but then, when I go to another page and when I come back, it disappears.