I have a problem with an ecommerce system i built for a client, some of the orders are coming up blank. I have added code to check whether sessions are being set and they are not being set on some orders which is why its coming up blank.
The reason I use sessions is to store the order info
eg: $_SESSION['data']=$_POST;
I can only assume the users have cookies disabled in their browsers and would like to know how I can get around this.
What I would like to do is check if cookies are enabled if not send the session id via $_GET
, but how do I access $_SESSION['data']
using the session ID?
So my questions are:
How do I check if cookies are enabled and if not send session id via get and how do I access $_SESSION['data']
using the session id?