RE: [PHP] Session problem? (Correction)
| From: | Javier Muniz | Date: | Fri, 19 Jan 2001 23:57:45 +0000 |
| Subject: | RE: [PHP] Session problem? (Correction) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35758@lists.php.net to get a copy of this message | ||
The session file is not empty :) the OBJECT portion of the session file
is empty. i.e. cat'ing /tmp/sess_whatever yields:
!OBJECT|
-jm
-----Original Message-----
From: Javier Muniz [mailto:JavierM@corp.granicus.com]
Sent: Friday, January 19, 2001 3:57 PM
To: 'php-general@lists.php.net'
Subject: [PHP] Session problem?
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net