ID: 25894 Updated by: [EMAIL PROTECTED] Reported By: tom at scl dot co dot uk -Status: Open +Status: Bogus Bug Type: Session related Operating System: Linux 2.4.18 PHP Version: 4.3.3 New Comment:
This is by design. Cookie lifetime would not work very well otherwise. Previous Comments: ------------------------------------------------------------------------ [2003-10-17 05:32:08] tom at scl dot co dot uk Description: ------------ The session_start() function seems to be sending the session cookie to the browser every time, even if the browser has already got a cookie and has submitted it to the script. This, along with being a pretty pointless thing to do, also makes it imposible to delete a session cookie after the session_start() has been called as all the browsers I have tried this with seem to ignore a request to delete a cookie if the same cookie has been set before hand in the same request. Reproduce code: --------------- <?php session_start(); ?> Expected result: ---------------- The cookie would be sent to the browser the first time you run the script but all following requests should not send a cookie to the browser because it has already got it. Actual result: -------------- A cookie is sent to the browser one every request for the page. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25894&edit=1
