Jul 31, 2020

Session cookie is not sent

We have connected our portal to Authorize.net payment gateway and when  payment gateway redirects to our portal  PHP session is lost. It happens only in chrome only for the last 10 days. Is there any change in chrome browser?
Non-Issue
Locked
Informational notification.
This question is locked and replying has been disabled.
Community content may not be verified or up-to-date. Learn more.
All Replies (60)
Aug 4, 2020
I am facing the same issue since couple of days... when payment gateway redirects to my portal, ASP.NET sessions are lost. It happens only in chrome. Please help
Oct 1, 2020
that is the same thing i am facing right now over here. Please do something real quick as soon as possible.
Oct 7, 2020
same issue I'm not getting session ids when paytm payment gateway reach pgResponce page it lost session and give errors in crome only... works good in mozila firefox.. how to fix it?
Oct 21, 2020
Still nothing ?
Oct 21, 2020
same here payment gateway redirect kills sessions in chrome
Oct 23, 2020
We have also same issue. Session lost in iframe or 3d payments
Oct 26, 2020
We also facing the same issue in chrome. All other browsers are working fine. Still no response from google!!
Oct 27, 2020
My php session gets unset automatically whenever i use payment gateway it doesn't work for successful as well as failure .. please do something.. due to this reason i can't handover the project to my client..
Oct 31, 2020
Hi guys, I have the same problem.
Chrome will only accept SameSite=None if it is paired with the secure header. 
The cookie must be served over HTTPS, so make sure your website handles any HTTP redirection as required.

I find a solution for me, in the config.php I changed that line:

$config['cookie_path'] = '/';

to this one:

$config['cookie_path'] = '/; SameSite=None';

It works for me.
Nov 6, 2020
Hi guys, I am also facing the same issue but it get solved thanks to Rahul Rajput 07 your given solution works for me.
i.e
Replacement in config.php

$config['cookie_path'] = '/';  

By

$config['cookie_path'] = '/; SameSite=None';

It works for me.
Last edited Nov 6, 2020
Nov 6, 2020
What is the $config['cookie_path'] you are refering to.Can we just set $config['cookie_path'] = '/; SameSite=None'; in index.php
Nov 9, 2020
Any solution? Same happening with me.
Nov 25, 2020
i have this same problem session in opencart cms
visit this link maybe this will helpful.
 https://www.opencart.com/forum/viewtopic.php?p=799695
false
14061441091066827348
true
Search Help Center
true
true
true
true
true
237
Search
Clear search
Close search
Main menu
false
false