ID: 37382 Comment by: byron at foundry dot co dot za Reported By: eschultz at lwmc dot com Status: No Feedback Bug Type: Session related Operating System: Server2003 w/ IIS 6 PHP Version: 5.1.4 New Comment:
I am experiencing similar symptoms with IE Ver 7.0.5346.5. URL depth used is only two deep (eg: http://localhost/foo/bar/) and I have implemented MySQL storage for session_save_handler in an attempt to fix the behaviour prior to discovering this bug listing. I have found that simple [root] session variables remain set while complex nested arrays disappear in a seemingly random fashion. Issue has not occurred with FireFox 1.5.0.4. Previous Comments: ------------------------------------------------------------------------ [2006-05-17 01:00:00] 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". ------------------------------------------------------------------------ [2006-05-13 19:50:20] richard at elpinto dot com Upon further review, it seems that IE7 Beta 2 has trouble identifying domain greater than 3 directories deep. e.g. most cookes are set to be accessed anywhere within the domain path when set (e.g. "/"), however it seems that IE is not consistent sending the cookie with the request when more than 2 levels deep within the site (e.g. "domain.com/store/cart/payment/") and thus session information is "lost" for that application instance. Should affect all languages that use sessions - not just PHP I would imagine. ------------------------------------------------------------------------ [2006-05-11 21:18:32] richard at elpinto dot com Having the same issue using Windows 2000 w/ IIS 5. Must be an IE7 Beta 2 issue. ------------------------------------------------------------------------ [2006-05-09 20:08:00] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Smells like IE bug though ------------------------------------------------------------------------ [2006-05-09 14:58:11] eschultz at lwmc dot com Description: ------------ I have developed a web application that uses a session variable that only allows valid users to use any page with in the app. While beta testing my app with the new IE7 the session variables will be dropped randomly and redirect me to my unauth users page. Reproduce code: --------------- if($_SESSION['valid']!="yes") { header("Refresh: 0; URL=$folder/unauth_user.php"); exit; } Expected result: ---------------- when the session variable 'valid' is not set to yes, the user was never authorized to view this page. The user should then be redirected to the unauth_user.php page. Actual result: -------------- The code is working correctly, the problem is that a valid user will get redirected by accident because the variable resets or loses its value ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37382&edit=1