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

(08-13-2023, 10:46 PM)InsiteFX Wrote: Don't use sessions for storing cart information use a secure cookie.
This way the user can leave and come back and still have their cart
items saved.

Thanks for the revert @InsiteFX. I did think about doing this, but then the core requirment of the client is that we will not be saving any information on the user machine unless very much necessary and insisting in using server sessions for all such data.

If you could just let me know as to why such session ID reset happens would have been of great help. I just tried the same flow of SSO login via core PHP and it worked fine without resetting session ID, but with codeigniter the session resets. I am guessing it is got to do with some configuration options, currently using the default Codeigniter 4 config option values. 

Just to mention it again that i am getting a POST request from the SOO callback url and that resets the session ID else everything works like a charm, with the session ID being maintained across the app pages.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB