Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Session Timing out within 2 minutes?

    HELP! For some reason, all of the sudden it seems, I am getting a TON of customers telling me that they can't check out of the ZenCart store. They log in, add stuff to their shopping cart, but within only a matter of < 1 minute, the session is logged off and they get the time_out page.

    MySQL version is 5.1.73.
    ZC Version: 1.5.4

    I didn't change anything in the ZC sessions configuration, but in case you need it:

    Session Directory
    /home/domain/public_html/store/cache

    Cookie Domain
    True

    Force Cookie Use
    False

    Check SSL Session ID
    False

    Check User Agent
    False

    Check IP Address
    False

    Prevent Spider Sessions
    True

    Recreate Session
    False

    IP to Host Conversion Status
    true

    Use root path for cookie path
    False

    Add period prefix to cookie domain
    True
    - Jeff

  2. #2
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Re: Session Timing out within 2 minutes?

    I already did an optimize and repair on the zen_sessions table, but that hasn't improved anything.

    I am effectively down right now, so any help is greatly appreciated!
    - Jeff

  3. #3
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Re: Session Timing out within 2 minutes?

    Oh, and here is my SESSION variables from the server. Anything look goofy?

    Attachment 17203
    - Jeff

  4. #4
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Re: Session Timing out within 2 minutes?

    So far the way I have reproduced it is to:

    1. Log into a customer account
    2. Add something to the cart
    3. Proceed to the checkout area
    4. Usually before I can get to Step 2 in the checkout, the session is expired.

    Sometimes it happens later, since I saw a customer get timed out at Step 3.

    HELP!
    - Jeff

  5. #5
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Session Timing out within 2 minutes?

    What's the PHP version? Any changes recently?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Re: Session Timing out within 2 minutes?

    PHP Version: 5.6.29 (Zend: 2.6.0) ##

    The only thing that changed within the last week was that we updated our SSL certificate by renewing it. But by all accounts, that seems fine. Although these timeouts always seem to happen AFTER a customer logs in, or goes through checkout, which would indicate an SSL connection takes place.

    Here is an excerpt from the Apache SSL log when it timed me out. It happened right as I tried to confirm the order:

    98.255.120.255 - - [04/Aug/2017:18:35:54 -0500] "GET /store/index.php?main_page=checkout_shipping HTTP/1.1" 200 6232 "http://www.mjmmagic.com/store/shopping_cart.html?search_in_description=1&keyword=crimson%2520resurrection&inc_ subcat=0&sort=20a" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"
    98.255.120.255 - - [04/Aug/2017:18:35:57 -0500] "GET /store/images/57343-full.png HTTP/1.1" 200 37238 "https://www.mjmmagic.com/store/index.php?main_page=checkout_shipping" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"
    98.255.120.255 - - [04/Aug/2017:18:35:58 -0500] "GET /images/ddq.jpg HTTP/1.1" 200 31012 "https://www.mjmmagic.com/store/index.php?main_page=checkout_shipping" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"
    98.255.120.255 - - [04/Aug/2017:18:36:01 -0500] "POST /store/index.php?main_page=checkout_shipping HTTP/1.1" 302 20 "https://www.mjmmagic.com/store/index.php?main_page=checkout_shipping" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"
    98.255.120.255 - - [04/Aug/2017:18:36:01 -0500] "GET /store/index.php?main_page=time_out HTTP/1.1" 200 28969 "https://www.mjmmagic.com/store/index.php?main_page=checkout_shipping" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"
    - Jeff

  7. #7
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Re: Session Timing out within 2 minutes?

    If you need to chat with me in real time, I'm live on the website. Just click the green chat bar in the bottom right hand side of the website: http://www.mjmmagic.com
    - Jeff

  8. #8
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Re: Session Timing out within 2 minutes?

    A couple of thoughts while I'm going crazy over here:

    1. I also don't know if this is related, but lately there have been a TON of users under "Who's Online." Most appear to be bots, but right now, there are 601, and I have seen that number jump up into the 800's recently. Could that also be causing sessions to get all screwy?

    2. Do you think I should turn on Force Cookie Use under the Session settings? Never tried that before. But since we recently put a new SSL certificate on the server, I didn't know if that would do anything.
    - Jeff

  9. #9
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Session Timing out within 2 minutes?

    The site is running a little slowly. Could be you're getting hit with a lot of traffic.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Aug 2004
    Posts
    765
    Plugin Contributions
    0

    Default Re: Session Timing out within 2 minutes?

    UPDATE: It looks like this may be resolved. I just went into Admin->Sessions and I set "Force Cookie Use" to TRUE. Before it was False (and always been False).

    I then logged into my customer account and placed a check/money order without any problems.

    I then logged into another customer account, on the same computer, and placed another check/money order without any problem.

    I want to thank DrByte for helping me out in trying to solve this issue. He went above and beyond to work with me on the issue, even placing test orders in our store to make sure it's working. :)

    If I find out anything more, I will update it here in case anyone else experiences the same issue after renewing your SSL certificate.
    - Jeff

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Order Within x Hours x Minutes and It Ships Today - Customization
    By cloud9 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 1 Dec 2017, 08:34 AM
  2. Timing Out
    By autoace in forum Installing on a Linux/Unix Server
    Replies: 22
    Last Post: 16 Feb 2010, 09:24 PM
  3. Session Timing out
    By magicpants in forum General Questions
    Replies: 1
    Last Post: 9 Jan 2007, 05:04 PM
  4. timing out
    By patchcables in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2006, 08:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR