Re: Session problem?

From: Date: Sat, 20 Jan 2001 08:58:32 +0000
Subject: Re: Session problem?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35788@lists.php.net to get a copy of this message
> 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

« previous php.general (#35788) next »