Post by ahmedmorefaat » Tue Dec 29, 2020 5:57 pm

ADD Creative wrote:
Mon Sep 14, 2020 10:45 pm
You would need to add it before the return to your controller, otherwise the first time might fail.

For the session cookie you should also add the following.

Code: Select all

; HttpOnly
i'm in this case and can't solve it i hope your help what exactly code i should put it and where?
my issue: if your login and payment successfully then return all session on my site gone and user logout but this happen first time while login again i see my order still in my cart and repeat process again done with no problem happen this happen only when use 3D secure with google chrom .
php version: 7.2
opencart version: 1.5

thanks

Newbie

Posts

Joined
Mon Dec 28, 2020 7:09 pm

Post by ADD Creative » Wed Dec 30, 2020 2:21 am

ahmedmorefaat wrote:
Tue Dec 29, 2020 5:57 pm
i'm in this case and can't solve it i hope your help what exactly code i should put it and where?
my issue: if your login and payment successfully then return all session on my site gone and user logout but this happen first time while login again i see my order still in my cart and repeat process again done with no problem happen this happen only when use 3D secure with google chrom .
php version: 7.2
opencart version: 1.5

thanks
For OpenCart 1.5.x, if you are using PHP 7.3+ then set the following in your php,ini or user.ini.

Code: Select all

session.cookie_secure=On
session.cookie_samesite="None"

www.add-creative.co.uk


Guru Member

Posts

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

Post by pravinbhakare » Wed Jun 14, 2023 9:27 pm

sreejajs wrote:
Mon Sep 14, 2020 9:35 pm
Hi All,

Thanks for the reply from all.

I have solved this by adding the below code to the function of the controller once it is redirected back to my controller.

header('Set-Cookie: ' . $this->config->get('session_name') . '=' . $this->session->getId() . '; SameSite=None; Secure');

Not sure this is the proper way. But this solved my problem.
The above solution worked for me. Thanks

Newbie

Posts

Joined
Wed Jun 14, 2023 9:21 pm
Who is online

Users browsing this forum: No registered users and 4 guests