#33055 [Fbk->Opn]: tran_sid not working
ID: 33055
User updated by: b-bonini at cox dot net
Reported By: b-bonini at cox dot net
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: FreeBSD 4.4
PHP Version: 5.0.3
New Comment:
Installed latest CVS per previous comment:
/php5-STABLE-200505181440 (PHP Version 5.0.5-dev)
- Same behaviour as originally cited.
- Same URL's still apply.
- added: http://gfx.gfx-design.com/session_test.php
*Note: SID changes with each browser refresh...
Previous Comments:
------------------------------------------------------------------------
[2005-05-18 17:02:31] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2005-05-18 14:43:40] b-bonini at cox dot net
BTW: The full script is here:
http://rejectioncollection.com/quotes.txt
It controls the "user quotes" in the grey box on this
page: http://rejectioncollection.com/buybook.php
AGAIN: cookeis enabled=fine, cookies disabled=no good.
------------------------------------------------------------------------
[2005-05-18 14:38:12] b-bonini at cox dot net
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 this bug report at http://bugs.php.net/?id=33055&edit=1
Thread (10 messages)