#25966 [Opn->Bgs]: HTML img src tag resets session variable
| From: | sniper@php.net | Date: | Fri, 31 Oct 2003 01:43:58 +0000 |
| Subject: | #25966 [Opn->Bgs]: HTML img src tag resets session variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49699@lists.php.net to get a copy of this message | ||
ID: 25966
Updated by: sniper@php.net
Reported By: kevin at netsmith dot ltd dot uk
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Red Hat Linux 7.2
PHP Version: 4.3.2
New Comment:
Simply: Don't do that. (browser issue, has nothing to do with PHP)
Previous Comments:
------------------------------------------------------------------------
[2003-10-24 04:40:03] kevin at netsmith dot ltd dot uk
The variable is set as follows:
session.use_trans_sid = 0
------------------------------------------------------------------------
[2003-10-23 22:12:32] iliaa@php.net
Do you have session.use_trans_sid enabled?
------------------------------------------------------------------------
[2003-10-23 08:18:37] kevin at netsmith dot ltd dot uk
[PHP Modules]
ctype
mysql
overload
pcre
posix
session
standard
tokenizer
xml
------------------------------------------------------------------------
[2003-10-23 08:16:35] kevin at netsmith dot ltd dot uk
Description:
------------
My PHP version is 4.3.2-RC2
I have an include file which executes a bunch of PHP code and outputs
HTML. I also store session variables.
I noticed that if I put the following HTML tag inside the include
file:
<img src="" height="5" width="5">
My session data gets reset.
Ok, the point here is no one should have an empty image source tag.
When the src is populated, the problem does not occur.
Reproduce code:
---------------
<? include('/path/to/the/file.php'); ?>
Expected result:
----------------
User should continue onto the next page of the website.
Actual result:
--------------
My error checking reports that the user is no longer logged in. This
is due to the session variable being reset by this HTML code.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25966&edit=1