Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2015
    Location
    Pensacola Florida
    Posts
    75
    Plugin Contributions
    0

    Default 1.5.7a Session timeouts missing file?

    A week or so back, to help fix a session timeout issue a /includes/extra_configs/samesite_cookie.php file was created. When I did the upgrade to 1.5.7a this file was not included so I removed it from the site.

    I am running Zen-Cart 1.5.7a (just upgraded from 1.5.7) on an Ubuntu 18.04 Linux server with 7.4.12 php and MySQL 5.7.32-0ubuntu0.18.04.1 Plugins Abandon Carts, Site Map and Google Feed. No debug logs generated.

    Credit Card payments use the Epath module (the current one now in the download area dated 7/3/20)

    Error can be duplicated on test site: www.alt.shirtcrazy.com with the file present and Chrome failing. If it needs removed let me know and I will pull it so you can test the other set of circumstances. I do not have a second site upgraded yet to make both available.

    With this file removed to match the file list of 1.5.7a you get Whoops Session Timeouts when using a credit card. I made multiple tests on IE, Fire Fox and Chrome all fail, also the Chrome sign-in will not allow you to log in and try again.

    With the file present, IE and Firefox work and I got no errors in testing.

    Chrome gives a Whoops timeout message every time you try to sign in. I tried from the whoops screen and using the login button and if you try to order an item you get the Whoops screen as soon as you click Add to Cart. Then I tried on a completely different machine and it also gave the whoops screen as soon as I tried to log in.

    I do not know if code was changed elsewhere that led to the deletion on the samesite_cookie file or if it was accidentally left out but causes a failure on chrome when installed. Either way neither configuration works 100%

    Any help in resolving this would be much appreciated.

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

    Default Re: 1.5.7a Session timeouts missing file?

    If you created the file to override the default then yes you'll need to keep that file in place for as long as you use the external service that requires you to have the override in place.
    .

    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
    Jan 2015
    Location
    Pensacola Florida
    Posts
    75
    Plugin Contributions
    0

    Default Re: 1.5.7a Session timeouts missing file?

    No I am sorry I guess I did not make myself clear enough.

    I am running a straight 1.5.7a no overrides/mods and I use epath for credit cards.

    When I was trying to solve problems with session timeouts I followed this information Re: ePath Payment received but no orders at this link https://www.zen-cart.com/showthread....-but-no-orders
    It modifies 2 files https://github.com/zencart/zencart/pull/3972/files and suggests the samesite_cookie.php but I could never get the patch to work so I pulled it. Then the 1.5.7a came out and one of the items in What's New was "Set Samesite cookie Parameter so I was hoping this would solve the problem.

    When I upgraded to 1.5.7a I found the problem I reported using epath. I remembered this comment on the post above "It's also possible that 'lax' mode may still be too restrictive, and thus you may need to override it to 'none' using this: Create a file named /includes/extra_configures/samesite_cookie.php containing. Since the change to 1.5.7a for the Same Site cookie was not working I tried adding the file to see if there was any change and got the results I reported.

    The problem is that customers paying with credit cards on sites using epath cannot complete there payments. With straight 1.5.7a IE, Fire Fox and Chrome all fail with session timeouts, also the Chrome sign-in will not allow you to log in and try again.

    The file was just a thought to see if maybe it would solve the problem and it does for IE and FireFox, but it will not work with Chrome it is not something I have added to my sites, none of the other code changes in that post were made, I am using the 1.5.7a pages from the download.

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

    Default Re: 1.5.7a Session timeouts missing file?

    My point was: if your payment module (epath in this case) requires sessions to be passed back and forth (as epath does), then the extra_definitions file you created in order to override Zen Cart's default of 'lax' to use 'none' instead, will still be necessary, because of your payment module's needs. If you eventually switch to a different module that doesn't redirect away from your site for payment and then back again, then you can probably remove that 'none' override.
    .

    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.

  5. #5
    Join Date
    Jan 2015
    Location
    Pensacola Florida
    Posts
    75
    Plugin Contributions
    0

    Default Re: 1.5.7a Session timeouts missing file?

    Thank you very much for the clarification I understand better. The service Epath provides fits our needs much better than most other options so I would prefer to not change it.

    That still leaves the problem that chrome does not work with the file present and chrome is on many cell phones and has the highest usage according to the stats.

    So presently if I go to 1.5.7a and use the file IE and Firefox will work but chrome will not, without the file IE and Firefox are broken but chrome works. Sorry this was unclear in the original post.

    So basically it forces choosing which browsers will work.

    Do you have any suggestions to resolve that problem?

  6. #6
    Join Date
    Oct 2013
    Location
    Canada
    Posts
    29
    Plugin Contributions
    0

    Default Re: 1.5.7a Session timeouts missing file?

    I am in the process of upgrading to zc1.5.7b with PHP7.4 and although the init_sessions.php file has been updated from zc1.5.7a onwards I still needed to use the samesite_cookie.php file in includes/extradatafiles to get epath to work in all browsers.

  7. #7
    Join Date
    Oct 2013
    Location
    Canada
    Posts
    29
    Plugin Contributions
    0

    Default Re: 1.5.7a Session timeouts missing file?

    Also forgot to mention to make sure you cache folder permission is set to 775 or 777.

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

    Default Re: 1.5.7a Session timeouts missing file?

    Quote Originally Posted by robertluer View Post
    I still needed to use the samesite_cookie.php file in includes/extradatafiles to get epath to work in all browsers.
    Yes. If your epath module requires setting it to 'none' then you need to define that for your site.
    .

    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.

 

 

Similar Threads

  1. Session timeouts during checkout
    By jmberman in forum General Questions
    Replies: 22
    Last Post: 27 Feb 2019, 09:23 PM
  2. Ajax requests and session timeouts
    By lumpylumpy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Dec 2010, 02:23 PM
  3. sessionWatcher (better handling of session timeouts)
    By s_mack in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 4 Sep 2010, 03:49 AM
  4. Questions about user session timeouts
    By bodyjewelrystores in forum General Questions
    Replies: 2
    Last Post: 30 Mar 2008, 08:01 PM
  5. Session Timeouts !!
    By Scrat in forum General Questions
    Replies: 0
    Last Post: 7 Apr 2007, 08:41 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