Session/Cookie management with Codeigniter 4 |
I have set up CodeIgniter 4 for an e-commerce platform where users can search for products and add them to their carts. This cart selection is saved to the session. To proceed to checkout, users need to log in, and I've implemented Google Single Sign-On (SSO) for this purpose. Upon successful login, users are redirected back to the same URL they were on when they initiated the login process.
However, I'm encountering an issue: after i am redirected back to my website via the Google SSO login, a new session is being created with a new session ID, causing all the items that users previously added to their carts to be lost. Could you please provide guidance on how to address this problem and ensure that the user's cart data remains intact even after the Google SSO login redirection? The below embeded image is of the new session being created along with the set-cookie header response. |
Messages In This Thread |
Session/Cookie management with Codeigniter 4 - by alvin_araujo - 08-13-2023, 02:47 PM
RE: Session/Cookie management with Codeigniter 4 - by InsiteFX - 08-13-2023, 10:46 PM
RE: Session/Cookie management with Codeigniter 4 - by alvin_araujo - 08-13-2023, 11:07 PM
RE: Session/Cookie management with Codeigniter 4 - by kenjis - 08-14-2023, 10:21 PM
RE: Session/Cookie management with Codeigniter 4 - by kenjis - 08-14-2023, 10:10 PM
|