Ok, this is making me crazy. I'm working on a site that uses sessions to track an order number. I register $ordernum and it persists throughout the users visit without fail or problem. Everything goes into and out of the cart based on $ordernum, all shipping info... everything without issue. The owner of the site uses PayPal, so once the customer decides to actually pay they are taken to PayPal to pay and then returned to a final page on the site, complete.php. It is on this page that I change the order status to paid, update inventory, and send out confirmation emails. For some strange reason when the customer is taken back to complete.php $ordernum, indeed the entire session, is gone. It's maddening. It can't be a problem with PayPal per se, because I can cut off in the middle of an order, go to PayPal, go pretty much anywhere, and come back to the site and the session is still running and $ordernum is still registered. On the other hand, if I skip paypal and manually go to complete.php from say, the view cart page it pulls up $ordernum just fine. I am completely at a loss on this one. Any thoughts.
FWIW, I can't really post reams of code here but I can assure you that Session_start(); is the first line of code on every page of the site.
FWIW, I can't really post reams of code here but I can assure you that Session_start(); is the first line of code on every page of the site.