CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

CI 3 session getting destroyed automatically.

Open vikasranjan88 opened this issue 2 years ago • 4 comments

Hi

After redirecting from Payment Gateway the session get automatically destroyed. I have upgraded CI 3.1.9 to 3.1.12. But the issue was still there in each version.

vikasranjan88 avatar Feb 09 '23 21:02 vikasranjan88

I have the same issue in PHP7.4, does anyone know how to fix this ?

chuhw avatar Apr 13 '23 08:04 chuhw

I have the same issue in Codeigniter 3.1.13.

krishnapadaroy avatar May 03 '23 08:05 krishnapadaroy

This is not a CodeIgniter issue. The browser keeps track of the session using cookies (as defined in the config/config.php file). After you redirect to the payment gateway you obviously need the visitor to return with the same cookie so that the server can identify the session. I recommend moving this to the CodeIgniter Forum to request assistance with your code.

daveherman71 avatar May 03 '23 08:05 daveherman71

Read https://web.dev/samesite-cookies-explained/

kenjis avatar May 03 '23 11:05 kenjis