Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22
  1. #21
    Join Date
    Oct 2013
    Location
    MTL
    Posts
    66
    Plugin Contributions
    2

    Default Re: Session expired after some payments instead of checkout_success

    Thank you that did resolve the issue. I guess creating the file /includes/extra_configures/samesite_cookie.php will make it apply to the entire site vs having the code in init_session.php (I guess this applies to session creation only)

    Code:
    $samesite = (defined('COOKIE_SAMESITE')) ? COOKIE_SAMESITE : 'lax';
    if (!in_array($samesite, ['lax', 'strict', 'none'])) $samesite = 'lax';

  2. #22
    Join Date
    Jun 2009
    Location
    Europe
    Posts
    56
    Plugin Contributions
    1

    Default Re: Session expired after some payments instead of checkout_success

    Thank you for this crutial info,
    Additionally, at the current state of Chrome browser SameSite=none; also causes error.
    You can not even log in to the site, it automatically logs you out.
    In the page error report it says Secure connection is obligatory if SameSite=none choosen.
    So the below definition by DrByte should be changed as follows:

    PHP Code:
    define('COOKIE_SAMESITE''none; secure'); 
    Thanks also to Scott C Wilson for putting this on Zen-Cart documentation
    https://docs.zen-cart.com/user/payme...oops_timeouts/

    If somebody could also update that it could save somebody sometime...

    Quote Originally Posted by DrByte View Post
    You can probably resolve it with this instead:

    Create a file named /includes/extra_configures/samesite_cookie.php containing the following:


    Code:
    <?php
    // -----
    // Samesite cookie needs to be 'none' when doing offsite payment gateway redirects
    //
    define('COOKIE_SAMESITE', 'none');

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v155 Impossible checkout (Immediate expired session) after server move
    By xavierpages in forum Upgrading to 1.5.x
    Replies: 7
    Last Post: 26 Jul 2016, 01:22 AM
  2. v137 Whoops! Your session has expired. Session Question.
    By weblamer in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 7 Jun 2015, 07:20 PM
  3. v151 Session Expired problem after installed the stock per atribute plugin
    By alexandregsalves in forum General Questions
    Replies: 0
    Last Post: 30 Jun 2013, 11:23 PM
  4. Whoops! Your session has expired. after paypal continue, since webserver upgraded
    By Justwade in forum PayPal Express Checkout support
    Replies: 15
    Last Post: 12 Jan 2010, 03:03 AM
  5. suddenly 'whoops your session has expired' with Secure Trading payments
    By PhillipHarrison in forum Addon Payment Modules
    Replies: 3
    Last Post: 18 Mar 2009, 01:30 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