Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Items in the cart still appear after customer log out #580

Open
MarwanRadwan7 opened this issue Jul 10, 2024 · 1 comment
Open

[BUG] Items in the cart still appear after customer log out #580

MarwanRadwan7 opened this issue Jul 10, 2024 · 1 comment
Assignees

Comments

@MarwanRadwan7
Copy link

MarwanRadwan7 commented Jul 10, 2024

Describe the bug

  1. When a user enter the website generate a cookie/session and saved under the name of sid in the browser with an age of 1 day.
  2. The cookie is attached to the cart whether the client is logged in or just a guest. So when an existed customer in our database log in and then logs out the cart is still shows the the data after log out.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the website.
  2. log in as a customer.
  3. Add some products to the cart.
  4. log out. Then you will see that items is still showing in the cart.

Background (please complete the following information):

  • NodeJS Version 20.13
  • Postgres Version 16
  • EverShop Version 1.1.0
  • OS: Ubuntu 24 LTS
  • Browser: Chrome

Additional context
I can help to provide a solution to this problem.

@MarwanRadwan7
Copy link
Author

Hello, @treoden
I can help to provide a solution to this problem in a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants