#25966 [Opn->Fbk]: HTML img src tag resets session variable
| From: | iliaa@php.net | Date: | Fri, 24 Oct 2003 02:12:32 +0000 |
| Subject: | #25966 [Opn->Fbk]: HTML img src tag resets session variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49408@lists.php.net to get a copy of this message | ||
ID: 25966
Updated by: iliaa@php.net
Reported By: kevin at netsmith dot ltd dot uk
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Red Hat Linux 7.2
PHP Version: 4.3.2
New Comment:
Do you have session.use_trans_sid enabled?
Previous Comments:
------------------------------------------------------------------------
[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