PHP 4.0 Bug #4332 Updated: Session-Management doesn't work
| From: | Bug Database | Date: | Tue, 04 Jul 2000 23:28:32 +0000 |
| Subject: | PHP 4.0 Bug #4332 Updated: Session-Management doesn't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23390@lists.php.net to get a copy of this message | ||
ID: 4332
Updated by: joey
Reported By: d.schaefer@echo.ch
Status: Open
Bug Type: Misbehaving function
Assigned To:
Comments:
You wrote to the list:
>Sorry, still doesn't work.
>
>My testprogram:
>1
>2
>3
>4
>5
>6 <?php
>7 echo "This is visible";
>8 session_start();
>9 echo "This is not visible";
>10 session_register("count");
>11 $count++;
>12 ?>
>
>Session-Autostart = true: Errormessage from the browser: "unknown or invalid
>return answer from the server". Files
>("sess_dd2276921fca44061ab08979428f4319") are created in directory \tmp
>
>Session-Autostart = false, cookie=true: Errormessage in Logfile:
>[03-Jul-2000 20:57:16] PHP Warning: Cannot send session cookie - headers
>already sent by (output started at G:\php\programme\sessiontest.php:6) in
>G:\php\programme\sessiontest.php on line 8
>"this is visible" is displayed by the browser.
>
>Session-Autostart = false, cookie=false: Errormessage in Logfile:
>[03-Jul-2000 21:03:04] PHP Warning: Cannot send session cache limiter -
>headers already sent by (output started at
>G:\php\programme\sessiontest.php:6) in G:\php\programme\sessiontest.php on
>line 8
>"this is visible" is displayed by the browser.
For starters, could you remove the first 5 lines of your test program?
Full Bug description available at: http://bugs.php.net/?id=4332