From: b-bonini at cox dot net Operating system: FreeBSD 4.4 PHP version: 5.0.3 PHP Bug Type: Session related Bug description: tran_sid not working
Description: ------------ session.use_trans_sid is set to 1 in php.ini but SID is not in the URL and sessions are NOT working with cookies disabled (in either php.ini or browser). It is not being over-ridden elsewhere (i.e., http.conf or .htaccess or via ini_set). Other changes in php.ini DO take effect, just not this one. Session file IS created in /tmp with an initial value of 0 but never increments (see script below). Basically, with cookies enabled everything is fine, diable them and the script relying on sessions stops working. phpinfo(): http://gfx.gfx-design.com/php_info.php Reproduce code: --------------- RELEVANT SECTION OF CODE: session_start(); header("Cache-control: private"); // IE 6 Fix if (!isset($_SESSION['user_quotes']) || $_SESSION['user_quotes'] >= count($quote _result) - 1) { $_SESSION['user_quotes'] = 0; } else { $_SESSION['user_quotes']++; } Expected result: ---------------- $_SESSION['user_quotes'] to increment by 1 or set to 0 if it's greater than or equal to $quote_results or does not exist... Again, works fine with cookies enabled, fails (not the script itself) with them disabled. Actual result: -------------- counter is not incremented. -- Edit bug report at http://bugs.php.net/?id=33055&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33055&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33055&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33055&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33055&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33055&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33055&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33055&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33055&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33055&r=support Expected behavior: http://bugs.php.net/fix.php?id=33055&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33055&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33055&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33055&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33055&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33055&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33055&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33055&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33055&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33055&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33055&r=mysqlcfg
