#24572 [Opn->Bgs]: SID's appended to relative links upon first view regardless of cookies availabl
| From: | sniper@php.net | Date: | Thu, 10 Jul 2003 02:51:47 +0000 |
| Subject: | #24572 [Opn->Bgs]: SID's appended to relative links upon first view regardless of cookies availabl | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43607@lists.php.net to get a copy of this message | ||
ID: 24572
Updated by: sniper@php.net
Reported By: scot at goldentroll dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Apache
PHP Version: Irrelevant
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
..
Previous Comments:
------------------------------------------------------------------------
[2003-07-09 21:37:40] scot at goldentroll dot com
to use this code i set session.use_trans_sid = off in htaccess (shared
server)
------------------------------------------------------------------------
[2003-07-09 21:32:29] scot at goldentroll dot com
Description:
------------
I am using the latest stable release 4.2.3
php_ini - session.use_trans_sid = on
Session id's are being appended to all relative links upon first view
regardless if cookies are available or not.
I can't read a cookie that has been set until the page is reloaded.
Reproduce code:
---------------
session_start();
if (!$PHPSESSID)){
// PHPSESSID is the session name-hence name of variable set in
session_start
ini_set('session.use_trans_sid', true);
}else {
ini_set('session.use_trans_sid', false);
}
Expected result:
----------------
I would like to know if cookies are available to a page when it loads.
I wish PHP did not append the links unless cookies are not available to
store the session id and value
Actual result:
--------------
(!$PHPSESSID) will always be true until the page is reloaded.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24572&edit=1