#22670 [Bgs->Opn]: session_start() URL Bug
| From: | r_stretch at yahoo dot com | Date: | Thu, 13 Mar 2003 19:39:34 +0000 |
| Subject: | #22670 [Bgs->Opn]: session_start() URL Bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35533@lists.php.net to get a copy of this message | ||
ID: 22670
User updated by: r_stretch at yahoo dot com
Reported By: r_stretch at yahoo dot com
-Status: Bogus
+Status: Open
Bug Type: Session related
Operating System: Debian
PHP Version: 4.3.1
New Comment:
I am editting the code so you can actually see the example more
appropriately. Try this actual code an you will see the bug I am
speaking of.
<---- start ---->
<?
//File Name: index.php
session_start();
?>
<html>
<head><title>INDEX.PHP</title></head>
<body>
<a href="index.php">hover mouse - click to reload</a><br>
<a href="http://path_to_URL/index.php">hover mouse
only</a>
</body>
</html>
<----- end ----->
Previous Comments:
------------------------------------------------------------------------
[2003-03-13 00:18:04] sniper@php.net
Yes, it's normal. (the cookie is not set at the first request)
------------------------------------------------------------------------
[2003-03-12 23:03:05] r_stretch at yahoo dot com
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 this bug report at http://bugs.php.net/?id=22670&edit=1