From:             kevin at netsmith dot ltd dot uk
Operating system: Red Hat Linux 7.2
PHP version:      4.3.2
PHP Bug Type:     Session related
Bug description:  HTML img src tag resets session variable

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 bug report at http://bugs.php.net/?id=25966&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25966&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25966&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25966&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25966&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25966&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25966&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25966&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25966&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25966&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25966&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25966&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25966&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25966&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25966&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25966&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25966&r=float

Reply via email to