Page 1 of 5 123 ... LastLast
Results 1 to 10 of 49
  1. #1
    Join Date
    Mar 2008
    Posts
    1
    Plugin Contributions
    0

    Default Session TimeOut during checkout

    when i click on confirm order, it redirects me to a login page and says this

    Whoops! Your session has expired.
    If you were placing an order, please login and your shopping cart will be restored. You may then go back to the checkout and complete your final purchases.

    If you had completed an order and wish to review it, please go to your My Account page to view your order.
    Any insight onto why zencart is doing this, i am using authorize_sim module for my CC's

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Session TimeOut during checkout

    What version of Zen Cart?
    If you use a different payment module, does the same thing happen?
    What addons do you have installed?
    Is your SSL shared or dedicated? Or are you even using SSL? Does your SSL domain match your non-SSL domain?
    .

    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.

  3. #3
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default Re: Session TimeOut during checkout

    Shoot, that happened to me once after having finally got the HSBC module to work today and I ignored it (thinking it was a one-off). Tonight it happens every time with different users, IE and FF. I haven't changed anything to do with php.ini and the timeout only seems to occur on the return from the HSBC gateway.
    Anyone else still struggling to find an answer for this?

  4. #4
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default Re: Session TimeOut during checkout

    Ok guys & gals, another self-fix (and may not be logically the correct solution) but one others might like to know of.
    It seems I unwittingly made a boo-boo whilst checking all configuration options this afternoon.
    In the config/sessions the 'session directory' was set to something like "/var/.../cache" a path which could not be accessed on my virtual domain.
    I set it to "/home/sites/mydomain/public_html/cart/cache" which is a valid directory and that's when the sessions started to be written to the directory but subsequently expired on completion of the payment transaction (with the "Whoops! Your session expired" message).
    I have since blanked out the path/filename which in turn means that sessions are forced to be DB based (I'm pretty sure that is the case) and it works. Clearly with an invalid path previously the sessions must have also defaulted to being DB based.
    So, though it works now I'd like to know how to get file based sessions to work correctly if anyone knows.

  5. #5
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default Re: Session TimeOut during checkout

    Seems like I put my mouth in gear before I did enough testing
    Logging in with another user and trying a transaction resulted in the session error, so it is clearly much more subtle than I'd thought...

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Session TimeOut during checkout

    If it's only happening with your custom payment module, then perhaps you're doing something during its execution which is losing the session number or something similar.


    File-based sessions require the /cache folder to be writable and your configure.php files set to use file-base caching.
    For database-based, set the configure.php files to use database-based caching.

    Don't forget that testing on a brand new clean uncustomized install can sometimes help prove whether non-working issues are a result of your customizations.
    .

    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.

  7. #7
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default Re: Session TimeOut during checkout

    Thanks for those pointers. I have tried it with DB and file caching (validating the files get written to the cache) but still have the same problem.
    The disappointing part is that I have made three successful transactions more 95% of the time I get the session timeout error.
    Oh well tomorrow is another day...
    Cheers.

  8. #8
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,896
    Blog Entries
    2
    Plugin Contributions
    2

    Default Re: Session TimeOut during checkout

    Are you using SSL for your checkout, and if so, is your SSL domain different from your normal cart domain ??

  9. #9
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default Re: Session TimeOut during checkout

    I am using ssl and the ssl domain is different but synonymous, in other words https://web54.secure-secure.co.uk/MY...sbc_return.php maps to
    http://www.MYDOMAIN.co.uk/cart/hsbc_return.php

    The fact that I have completed a small number of transactions suggests that the problem lies somewhere in the caching/session handling.

    I have emptied the db_cache, sessions and whos_online tables, tried using file sessions, db sessions, force cookies etc to no avail.

    I feel sure that someone else must have had this issue and resolved it successfully. Let's hope so as I am presently exhausted by it !

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Session TimeOut during checkout

    What happens if you disable SSL temporarily for testing? Do the problems go away?
    .

    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.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Replies: 19
    Last Post: 26 Jan 2015, 07:42 PM
  2. Timeout during checkout with protx?
    By helenthemum in forum Addon Payment Modules
    Replies: 0
    Last Post: 16 Mar 2008, 02:02 PM
  3. Replies: 12
    Last Post: 30 Nov 2007, 05:54 AM

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