RE: [PHP] Session files in /tmp are zero length
| From: | Jennifer Goodie | Date: | Wed, 14 May 2003 18:06:38 +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-147630@lists.php.net to get a copy of this message | ||
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>";
> > ?>