Session problem?
| From: | Javier Muniz | Date: | Fri, 19 Jan 2001 23:56:31 +0000 |
| Subject: | Session problem? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35757@lists.php.net to get a copy of this message | ||
I am using the following function to add a serialized object to a
session:
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.
Any help is greatly appreciated.
Cheers,
-jm