Opencart losing cart on redirect after payment

Opencart has issue with Samesite session cookie which can be resolved in OC version 2.X by adding those two lines code

if(isset($_COOKIE["PHPSESSID"])){
    header('Set-Cookie: PHPSESSID='.$_COOKIE["PHPSESSID"].'; SameSite=None');
}

There is a lot of info about PHP example for SameSite=None; Secure

https://github.com/GoogleChromeLabs/samesite-examples/blob/master/php.md

Or even in the OpenCart forums

С етикет: , , ,
Публикувано в Opencart, php

Вашият коментар

Вашият имейл адрес няма да бъде публикуван. Задължителните полета са отбелязани с *

*