RE: [PHP] Session files in /tmp are zero length
| From: | Johnson, Kirk | Date: | Wed, 14 May 2003 14:08:48 +0000 |
| Subject: | RE: [PHP] Session files in /tmp are zero length | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147581@lists.php.net to get a copy of this message | ||
> Hi..
> I'm migrating a web application from PHP 4.0.3 on Linux to 4.2.2 and
> having trouble with the session variables.
>
> The code has various statements like:
> session_register("varname");
>
> I get the sess_... files in /tmp, but they're all zero length, so of
> course the application doesn't work...
>
> register_globals is ON and I've even tried sticking a
> global $varname;
> ahead of the session_register, but nothing seems to force it
> to save it
> in the sess_... file.
Start by setting the error reporting level to max, using:
error_reporting(E_ALL);
We may need to see some representative code to help.
Kirk