incomplete cookies with PHP

2000-11-18 Thread Greg Strockbine
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




Re: incomplete cookies with PHP

2000-11-18 Thread Andrei Ivanov
I had a problem like this once: cookies wouldnt set. Session variables
wouldnt get registered. Solution was simple enough: turn off misconfigured
junkbuster (in my case it doesnt let cookies through).
But my script was a little different: 
I had
session_start();
$product1=Hal2000;
session_register(product1);

You might setting the variable value first and then saving it into
session.
Andrei


--
Andrei Ivanov
http://arshes.dyndns.org
[EMAIL PROTECTED]
12402354
--