ID: 24968 Updated by: [EMAIL PROTECTED] Reported By: lucas at sitepoint dot com -Status: Open +Status: Bogus Bug Type: Session related Operating System: Redhat Linux 7.1 (2.4.18) PHP Version: 4.3.2 New Comment:
Reopen if you can prove that this affects the apache child internally, not the cookie you set. (btw. using different name for different vhosts is usually very good idea..) It works just fine for me using latest CVS. (no 4.3.2 installed here so I can't test if it doesn't work there) Previous Comments: ------------------------------------------------------------------------ [2003-08-06 21:58:27] lucas at sitepoint dot com Description: ------------ This function does not work as expected, according to the documentation. The effect last for longer than the duration of the script. This bug has been reported previously for prior versions of php, but all cases have been closed. Reproduce code: --------------- session_set_cookie_params(86400*365); Expected result: ---------------- We expect that this code would only affect the lifetime of cookies associated with this script. As per the documentation: "The effect of this function only lasts for the duration of the script." Actual result: -------------- We have found that this function did not only affect the desired script, but also subsequent requests to other scripts belonging on different virtual servers. Further investigation showed that this seemed to only happen on a per apache process basis. We resorted to using .htaccess to set the session.cookie_lifetime value on a per virtual server basis. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24968&edit=1
