Welcome Guest, Not a member yet? Register   Sign In
Session/Cookie management with Codeigniter 4

(This post was last modified: 08-13-2023, 02:56 PM by alvin_araujo.)

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.

[Image: codeigniter-screenshot.png]

Messages In This Thread
Session/Cookie management with Codeigniter 4 - by alvin_araujo - 08-13-2023, 02:47 PM

Theme © iAndrew 2016 - Forum software by © MyBB