> function add_toCart($id,$array) {
> session_register("OBJECT");
> $c = new Configurator;
> $c->readConfig($id);
> $OBJECT = serialize($c);
> header("Location: Cart.php");
> echo "Redirecting..."
> }
>
> Unfortunately, the session file (in /tmp) is always empty after this
> function executes. I'm using PHP 4.0.4 with --enable-trans-sid.
I don't think you can do a Location and a Cookie in the same page, and the
Sessions are done with Cookies, so...
Don't do that.
Sorry.
By Day: |By Night:
Don't miss the Zend Web Store's | There's not enough room here...
Grand Opening on January 23, 2001! | Start here:
http://www.zend.com | http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]