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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:48:47+00:00 2026-05-30T12:48:47+00:00

We are developing a shopping cart application. For every single user session i have

  • 0

We are developing a shopping cart application.
For every single user session i have to give the user 20 minutes after he adds first product to shopping cart to go to checkout process. If the user adds another product, i have to reset the clock and start 20 minutes from the beginning. ıf user doesnt do anything in 20 minutes, i have to end the session. If user goes to checkout process another clock for checkout process will start. It will be 15 minutes. But if he cancels the checkout process and comes back to store, first clock has to start where it was left..

Hope i am clear.

What approach I can use? Am I gonna use threads, sessions vs..?

Thanks alot.

  • 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-30T12:48:49+00:00Added an answer on May 30, 2026 at 12:48 pm

    You would want to use Session state for this. You can set a timestamp in the session everytime the user does something – for instance, adds an item / etc. Before you open any page, you would check the time and see if

    (DateTime.Now - Session[LastAccessTime]) > new TimeSpan(0, 20, 0)
    

    If it is greater, then show a message saying that the time expired, else continue on.

    On the shopping pages, you can check for 20 minutes, on the checkout pages, check for 15 mins.

    Check out this answer too: Session time out with Timer

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

Sidebar

Related Questions

In developing a shopping cart application I've found that I needed to save settings
I'm developing a lightweight shopping cart but have become stumped with products that have
I am currently developing a shopping cart solution and I have a field, which
I am developing a custom shopping cart for which existing customers will need to
I am developing an ASP.Net application that will need to verify that the user
I'm developing a shopping cart that uses for example Captcha to validate that a
I'm developing a website (with a shopping cart) on top of Codeigniter, and want
I am developing an application for use in shopping malls. I want to use
I am developing online Shopping Cart system. Now I need to work on adding
I am thinking of developing a shopping cart for Wordpress. I know there are

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.