#22670 [Opn->Bgs]: session_start() URL Bug

From: Date: Thu, 13 Mar 2003 06:18:05 +0000
Subject: #22670 [Opn->Bgs]: session_start() URL Bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35483@lists.php.net to get a copy of this message
 ID:               22670
 Updated by:       sniper@php.net
 Reported By:      r_stretch at yahoo dot com
-Status:           Open
+Status:           Bogus
-Bug Type:         URL related
+Bug Type:         Session related
 Operating System: Debian
 PHP Version:      4.3.1
 New Comment:

Yes, it's normal. (the cookie is not set at the first request)




Previous Comments:
------------------------------------------------------------------------

[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



Thread (4 messages)

« previous php.bugs (#35483) next »