Debian potato, Apache 1.3.12, PHP _4.0.3pl1-0potato1.deb
I've tried the PHP mailing lists, archives, knowledge bases, etc.
out of desparation I'm posting here.
when I use session_start () I get a cookie or /tmp/sess* file
that only contains the variables' name but no value. I've rebuilt
PHP about 3 times now. Checked Netscape for saving cookies,
rewrote the php script a hundred times but can't seem to sovle this
one.
Doing a session_encode() produces this for the script below:
!product1|!product2|
any ideas will be greatly appreciated.
- greg s.
here's the script:
?php
session_start();
session_register(product1);
session_register(product2);
?
html
head
titleListing 20.2 Registering variables with a session/title
/head
body
?php
$product1 = Sonic Screwdriver;
$product2 = HAL 2000;
print session_encode();
print brThe products have been registered.;
?
/body
/html