RE: [PHP] Session files in /tmp are zero length

From: Date: Wed, 14 May 2003 18:25:41 +0000
Subject: RE: [PHP] Session files in /tmp are zero length
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147635@lists.php.net to get a copy of this message
Thanks for the thought, but same behavior.. Zero length session file, no vaules passed... Lee At 12:06 PM 5/14/2003, Jennifer Goodie wrote:
Try adding a session_write_close() before pushing the header. -----Original Message----- From: Lee Stewart [mailto:lstewart@dsgroup.com] Sent: Wednesday, May 14, 2003 9:54 AM To: php-general@lists.php.net Subject: Re: [PHP] Session files in /tmp are zero length Thanks for the suggestion... Trying your simple test, page2 comes up with "test is". And I get another new sess_... file in /tmp, also zero bytes.... Lee Kirk Johnson wrote:
Sorry, I am stumped. I would start out with the simplest test
page I could
make, and see if you can get that to work: page.php <? session_start(); $test='foobar'; session_register('test'); header('Location: page2.php'); ?> page2.php <? session_start(); echo "test is $test<br>"; ?>
---------- Lee A. Stewart Senior Systems Engineer Sytek Services, a division of DSG www.sytek-services.com www.dsgroup.com Email: lstewart@dsgroup.com Phone: (719) 566-0188
Fax:     (719) 566-0655


« previous php.general (#147635) next »