I am currently developing a simple shopping cart using PHP & HTML. I've been having troubles with using the SESSIONS in Php like:
- Sessions not continuing when I switch pages even though I called the
session_start()at the top of every page.
Is it a better approach to use sessions in keeping track of a clients cart?
My requirements are as follows:
Keep track of users cart when user is switching pages.
Save users cart to database when the user proceeds to check out.
- Clear users cart(session) when it has been idle for 30 minutes.