From: lucas at sitepoint dot com Operating system: Redhat Linux 7.1 (2.4.18) PHP version: 4.3.2 PHP Bug Type: Session related Bug description: session_set_cookie_params() affects entire apache process
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 bug report at http://bugs.php.net/?id=24968&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24968&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24968&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24968&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24968&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24968&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24968&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24968&r=support Expected behavior: http://bugs.php.net/fix.php?id=24968&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24968&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24968&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24968&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24968&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24968&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24968&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24968&r=gnused
