I've got a very bizarre thing occuring. I have a PHP based cart that has to pass information to a separate domain due to the way the SSL is set up. So the cart builds an array session variable during the shopping. Then I serialize it and urlencode it to pass it to the SSL domain. At the other end I urldecode and unserialize the passed variable. Trouble is sometimes it creates a duplicate array entity for the last entry. It is not always. In fact it seems to be limited to certain product IDs. It does not always occur with those same product IDs, just sometimes. I'm truly perplexed here.
One thing that might be causing the problem is the urlencoding of the serialized variable. But I don't know a better way to do that. If I don't urlencode it then the variable doesn't pass because it has to be
<input type="hidden" name="varname" value="seralizedvariable"> and all serialized variables have quotes in them so it chokes. Is there a better way of passing a session array from one domain to another?
Thanks.