From: scot at goldentroll dot com Operating system: Apache PHP version: Irrelevant PHP Bug Type: Session related Bug description: SID's appended to relative links upon first view regardless of cookies availabl
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 bug report at http://bugs.php.net/?id=24572&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24572&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24572&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24572&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24572&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24572&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24572&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24572&r=support Expected behavior: http://bugs.php.net/fix.php?id=24572&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24572&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24572&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24572&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24572&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24572&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24572&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24572&r=gnused