post session var array to different domain on same server
hi,
i would like to be able to take a Session variable for a shopping cart and pass it to another page (domain) but on the same server. the domain for the cart is www.cartdomain.com and i need to post all the session info (user id and the contents of the cart stored in an array) to domain https://order.securedomain.com/~cartdomain
In Explorer it works fine , but in Navigator 6.1, the size_of function is returning 0 and sending the user to the home page (that is the function i use so that if someone hits the "checkout " button before they add antyhign to their cart they are just kicked to the home page)
the session code at the top of the normal pages (at http://www.cartdomain.com) is :
session_start();
//session_register('userid','mycart');
if (!$SESSION['userid'])
{ $SESSION['userid'] = MkPassword($length=15); }
and the code at the top of the checkout page (https://order.securedomain.com/~cartdomain) is:
if (!$SESSION['userid'])
{ $SESSION['userid'] = MkPassword($length=15); }
$PHPSESSID = $COOKIE["PHPSESSID"];
$mycart = $SESSION['mycart'];
$size_cart = sizeof($mycart);
if ($size_cart == 0)
{
global $homeurl;
header("Location: $homeurl");
exit;
}
like i said, it works fine in Explorer, but not in Navigator. I am feeling that the array is not being passed.
any advice would be great.
thansk