I uses Sydney. I have issue with Cache and Cookie

Dear Kharis,

Thanks for your great Sydney theme. I have some issues where my users logged in to my website and close their browsers without logout.
I have used wooCommerce, WP Super Cache plugins and some plugins to display menu items and contents based on user login or not.

So the following items of main menu is shown when the user do not login yet:

State A) Home – Sesame Oil – Login

After logged in, the user sees the following items:

State B) Home – Sesame Oil – Shop – Hello username – Logout

But what is the problem:
1- When the user logs in to his account, if he closes the browser and reopens it, he will encounter the menu before the login. While he should see the menu that he saw in the login mode. In fact, I feel that there is an interference and Conflict between the cache and the cookie.

2- In this case, if the user has already selected a number of goods for purchase but has not check-out, the Cart plugin also shows this number of goods. That means, the WooCommerce cookie works well.

3- This problem occurs when we close the entire browser. If we just close the Tab where my website is running and open a new Tab and browse again the website, this will not be any problem. Even if a separate window from the browser is open (and displays any website other than my website), we still won’t have this problem.

4- There is another interesting point. If our browser is Opera, we won’t have this problem again. But we have this problem on Google Chrome, Firefox and Internet explorer.

My website address: https://addroot.com/mysite_eng
Please tell me how to send Administrator username and password if it’s needed.

Please help. I have been working on this for more than 10 days. I’ve read a lot of articles about cache and cookies and I’ve done a lot of experiments, but I haven’t come to any conclusions.
I am also satisfied that if the user closes the browser, he logout automatically from his account.

Best regards,

Kourosh

Dear Kharis

Hi, I’m still waiting for your answer. At the same time, I would like to ask if I could transfer my problem clearly. If you need more information, please let me know so I can send it to you.

Sincerely

Hello there,

I replied your direct message already. Let me know in case you haven’t yet received it.

Stay safe.
Have a nice day.

Regards,
Kharis
aThemes Support