CodeIgniter
CodeIgniter copied to clipboard
CI 3 session getting destroyed automatically.
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.
I have the same issue in PHP7.4, does anyone know how to fix this ?
I have the same issue in Codeigniter 3.1.13.
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.
Read https://web.dev/samesite-cookies-explained/