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 4000388
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:46:32+00:00 2026-05-20T07:46:32+00:00

I need to keep my basket more permanent I have two options and I

  • 0

I need to keep my basket more permanent I have two options and I want to choose the best one.

I have eCommerce web site application in asp.net and there is a basket include products which are selected by users before, so options:

     1- keep basket in database (consider the cost and time to store and retrieve information)
     2- store my basket in Cookies (I don’t know what the implementation is)

I couldn’t use session because it is not permanent and clear by closing browser.

My goal is : when the user close the IE for 1 day or 2 days make ability to remember all products that already added to basket.

In addition, my basket is store in hash-table now, for example : {1:4055,2:4588,…} they are ID and product code(keys). they are all save in a hash table.

Please give me a solution and the way to how I can implement it with the minimum cost ?

  • 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-20T07:46:32+00:00Added an answer on May 20, 2026 at 7:46 am

    The minimum cost for whom and for what? Do you want to be memory / disk efficiant on the server? Do you want to be cost effective when programming?

    If you want to be cost effective considering space, you can always use cookies, but you can’t really trust cookies, so I wouldn’t store everything in there.

    What you could do is to store a “Basket Id” in a cookie, that references a Basket in your data store. What you would also like to do is to store the “Begin Purchase” on the basket, because this way you could clean up all baskets after a couple of days with a nice sql job.

    There are a lot of ways to solve this, but I would not store everything inside the cookies, just store a reference there. So I would definetly go with database!.

    You should check out the “MVC Music Store Tutorial” over at http://www.asp.net to get some more information on how to buld an online shop.

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

Sidebar

Related Questions

I have a situation where I need to merge two product tables into one
I need to keep selected the options users choose in a multiple select menu.
In one of my Android Application I need to keep the title bar same
I need to keep a list of user_id s that have viewed a piece
I need to keep my old coldfusion links in my new Joomla site. I
I need to keep all images, css, etc in one folder structure and all
I need to keep access settings to different web pages inside of my asp.net
I need to keep the files & folders on two Windows-based, non-domain machines synchronized
I need to keep Security.level set on medium for Ajax reason. But I want
So I have a domain and I need to keep a python process running

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.