Post by vitaorganic » Wed Sep 23, 2020 3:20 pm

Hi everyone,

I face a google chrome same site problem in OC version 2.2.0.0.
Some third party payment modulo will be failed to work.

The payment modulo's company release a way to fix it.▼
The written way for SameStie Cookie in PHP7.2 (and before 7.2)
header('Set-Cookie: cross-site-cookie=name; SameSite=None; Secure');

But it is not only for Opencart, so i don't how to fix it in oc2.2.0.0
Does anyone knows which file and which line should i put in?

Thanks for the helping.

Newbie

Posts

Joined
Mon Aug 07, 2017 1:39 pm

Post by paulfeakins » Wed Sep 23, 2020 6:14 pm

These new changes seem to also cause this issue: viewtopic.php?f=190&t=220120

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ADD Creative » Wed Sep 23, 2020 6:17 pm

For PHP 7.3+ the changes will in the link below.
viewtopic.php?f=190&t=216579&start=20#p782590

You also need the following in your php,ini or user.ini.

Code: Select all

session.cookie_secure=On
session.cookie_samesite="None"
Or in session.php add:

Code: Select all

ini_set('session.cookie_secure', 'On');
ini_set('session.cookie_samesite', 'None');
Just after.

Code: Select all

ini_set('session.cookie_httponly', 'On');
If you can't use PHP 7.3+ try the link below, but read my notes in the post below that one.
viewtopic.php?f=190&t=216579&start=40#p798977

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 445 guests