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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:10:17+00:00 2026-05-27T00:10:17+00:00

In a module I wrote I store in the session the items the user

  • 0

In a module I wrote I store in the session the items the user added to his cart.
How would you handle this situation: The user adds a new item to his cart after the session timedout?
I can redirect to the homepage but then I’m causing the redirect to happen even when the session wasn’t in use. like when the user isn’t logged in, or his cart was empty.

How do you handle session timeout in your applications?

  • 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-27T00:10:18+00:00Added an answer on May 27, 2026 at 12:10 am

    In this case, I might not use the built in ASP.NET Session provider. Instead you could set a persistent cookie for the customer’s shopping cart session with an encrypted ID that maps to a session stored in the database, which stores the contents of the cart.

    This way, you don’t need to worry about timeouts, the session will continue for the lifetime of the cookie.

    (If you really need to use ASP.NET Session, maybe you’ve already got code that uses it, then you could set the timeout to a very large number and configure the Session state provider to use SQL Server.)

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

Sidebar

Related Questions

I wrote a payment module for X-Cart. My return url section is: require './auth.php';
I wrote a python module. Running python filename.py, only checks for syntax errors. Is
I wrote a custom URL rewriting module, to take certain paths and map them
I've wrote a small cryptographic module in python whose task is to cipher a
I'm trying to store the print output from a function of another module imported,
I know this isn't exactly how the pickle module was intended to be used,
I'm using Tokyo Cabinet with the tc module in python. I store my data
Can anybody help me out? I would like to store a hex colorPicker value
Can someone suggest a good module in perl which can be used to store
I have a web application with a homemade user module. Users are stored in

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.