From: r_stretch at yahoo dot com Operating system: Debian PHP version: 4.3.1 PHP Bug Type: URL related Bug description: session_start() URL Bug
Hi there, It seems that if the index.php starts with session_start() any hyperlinks that do not begin with "http://" within the document will have the PHPSESSID appended to the end of the hyperlink. Though once you refresh the same page the PHPSESSID removes itself from the hyperlink. Example: <---- start ----> <? //File Name: index.php session_start(); ?> <html> <head><title>INDEX.PHP</title></head> <body> <a href="index.php">reload this page</a> </body> </html> <----- end -----> When you hover the cursor over the hyperlink you will see: http://path_to_URL/index.php?PHPSESSID=hash_characters Now click that same link and you will see (will refresh the page): http://path_to_URL/index.php I install only with MySQL, GD, CGI modules. Is this a bug or is it working as expected? -- Edit bug report at http://bugs.php.net/?id=22670&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22670&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22670&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22670&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22670&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22670&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22670&r=support Expected behavior: http://bugs.php.net/fix.php?id=22670&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22670&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22670&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22670&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22670&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22670&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22670&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22670&r=gnused