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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:01:20+00:00 2026-06-08T00:01:20+00:00

We are interested in extending the session duration for guests that visit our Magento

  • 0

We are interested in extending the session duration for guests that visit our Magento website. By default if a guest adds an item to the cart and leaves the page afer 24 minutes the session is destroyed and when they return the cart is zeroed. I extended the maxlifetime via htaccess to 6 hours to test it out and it works correctly. I know my manager is interested in keeping sessions alive for 1 week or even longer. My question is: what are the potential drawbacks of keeping sessions alive this long? Server performance, server space for session files, security concerns, etc?

  • 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-06-08T00:01:22+00:00Added an answer on June 8, 2026 at 12:01 am

    Unless you have explicit PCI compliance directives to only retain session data for a specific window – there isn’t any real security concerns. The session data doesn’t hold any sensitive information.

    By extending the window, the only concerns I can think about would be.

    1. You are giving a longer/greater chance for the session/customer to be vulnerable to an XSS attack on the existing session (not that this wouldn’t perhaps otherwise be the case anyway).
    2. You run the risk of the session directory becoming excessively large – causing any session clean-up cron’s to have to iterate through an increased number of files.
    3. If you are storing anything else in the session that you shouldn’t be doing (ie. that makes it larger than the default 4kb); then you’ll be rapidly consuming disk space.
    4. If you are using memory storage for sessions (Memcache/Redis) – then you’ll eventually run out of available space and auto-truncate older sessions. So you’ll have to commit a fairly large amount of RAM purely for legacy/archived session storage.
    5. If you are using DB storage for the sessions – then you’ll end up in a bad way. Magento’s DB based session storage is horrendous and falls over at the slightest hint of use – avoid
    6. A potential security concern could perhaps be if the customer’s machine is a shared computer. At least with a 24 minute (or otherwise) session volatility, chances are the session would have expired before another user can take advantage of it.

    But there is a better solution

    Rather than just extend session time on site, have you perhaps thought of investigating a more sophisticated solution, whereby if the cart has been abandoned, you can alert the customer of such via email and give them a link to re-instate the cart contents/wishlist/session etc.

    This would obviously give you the underlying solution and the advantage that you could pro-actively convert the customer – and all it would require is capture of an email address.

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

Sidebar

Related Questions

I am interested in logging all traffic that comes over port 443 for trouble-shooting
I am interested in tracking my users' pageviews on my site. Being that traffic
Interested in description of your most used ASP.NET httpmodules that solved a specific problem
I am interested in extending my application with plug-ins. I made the Application to
Im interested in implementing a JQuery solution for a Panel Selector that seems very
I'm interested in extending the behavior of jqueryUI's dialog widget. In the past I've
I already know some Python and got interested in extending Blender using Python scripts.
Extending an interface simply adds additional operations to be defined in any implementors and
We have a website that is getting over 1m hits a day. The site
Interested in upgrading JAVA VERSION from JAVA 1.5 to JAVA 1.6 [oracle@server301 /]$ java

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.