Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:13:05+00:00 2026-05-23T20:13:05+00:00

I have designed a shopping cart that allows both login and non-login users to

  • 0

I have designed a shopping cart that allows both login and non-login users to place stuff in it. The problem lies with non-login user, when they add items into the cart, it will be stored in their browser cookie as well as to my database with the cookie name as the ID, the next time they surf the site again as non-login user, my program will do a search & match, if the cookie on the user side is found then the cart will be returned.

Now if the user say add 20 items and delete their cookie right after, that would leave an “unattended” cart in my database. I think there’s no way to make it in such a way that if the cookies are deleted on the client end, I want those “unattended” cart to be removed too. I have thought of not committing the quantity for non-login users till they sign in and migrate the anoynomous cart into their own account but that would sort of being biased towards login users and last thing I want is them coming back 3 days later and find all items goes out of stock.

Any advice? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:13:06+00:00Added an answer on May 23, 2026 at 8:13 pm

    You could schedule a job on the database that will run at regular intervals and will delete let’s say all anonymous carts that are older than 1 week.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have designed a report with 4 subreports, the problem is that when I
I have designed a menu that consists of a few buttons in several different
I have designed a custom section handler before but I'm faced with a problem
Background: I have a design pattern problem that I was hoping someone may be
I have a long-lived server application that is designed to run with minimal downtime
I have designed a system that is made up of 3 separate applications: Web
i have designed an form in that form contain button when i click on
In my C# Windows Forms application, I have a user control that contains other
I designed a shopping cart solution for a client. For one of their items
I have designed my database in such a way that One of my table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.