ID: 42791 Comment by: bozin at centrum dot cz Reported By: dron007 at yahoo dot com Status: No Feedback Bug Type: Session related Operating System: Linux PHP Version: 5.2.4 New Comment:
I have had this problem too, if browser could not find an img it reset the session, I found out what caused it this statement in .htaccess: ErrorDocument 404 http://domain/404.html If I remove it everything is ok. Previous Comments: ------------------------------------------------------------------------ [2008-08-06 06:01:02] hardik dot akbari at etatvasoft dot com i think this is one of the possible reason for this bug. <img src=''> causes IE 7 to reset php session variable... so put a check that src attribute should not be blank.. ------------------------------------------------------------------------ [2008-08-06 05:45:51] hardik dot akbari at yahoo dot com i am facing the same problem in internet explorer. in ie 7 , <img src="pathtoimage"> resets session variables. i am using apache 2.2.9 , php 5.2.7-dev. this seems browser problem than php.. ------------------------------------------------------------------------ [2007-11-27 16:40:45] martin at limitless dot co dot uk I have recently come across this bug in PHP Version 5.1.4. The code was <img src="#"> that caused the session variables to reset. The system is running Apache 1.3 on Solaris 10. If I can provide any other useful information, just let me know. ------------------------------------------------------------------------ [2007-10-07 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-10-01 10:37:44] dron007 at inbox dot ru Yes, that was IE6. With FF and Opera everything works fine. Probably that is browser issue but it is very weird thing because if I add another session variable that is not nulled IE shows this variable and doesn't show nulled one. FF shows both of them. That means that session cookie is sent in both cases. Also if I move $_SESSION["some_var"] = null; inside "if" statement it works fine too. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/42791 -- Edit this bug report at http://bugs.php.net/?id=42791&edit=1