Reply to Re: [OT-ish] FF: weird 'view source' problem, PHP session lost

Your name:

Reply:


Posted by Erwin Moller on 03/23/07 16:45

peter wrote:

>
>> Looks like my hypothesis about re-requesting the page is correct: I
>> checked
>> my webservers accesslog, and find excactly what you would expect for a
>> new request: 2 new line are added for each time I click 'view source'.
>> - the first is a 302 (created by the Location header)
>> - the second is a 200 (the loginpage)
>>
>> This happens every time I click 'view source'.
>>
>> Why is FF doing this?
>> I am shooting in the dark here. :-/
>
> I have just tried running the following code and seeing what the results
> were:-
>
> <?php
> echo rand();
> ?>
>
> Every time i veiwed the source it contained the same random number as when
> I requested the page (tried several times refreshing so a new number was
> generated). The chance of this happening if it was requesting a new page
> for the source is 2147483647 to 1 on my system so I highly doubt that is
> happening. The only thing I can suggest is your header is not actually
> taking place OR you have a firefox extension that is causing the page to
> be rerequested before it shows you the source.

Clear test, with the expected results.
But could you try the same script and make sure it fails (or produces a
different output) if a certain value is not found in $_SESSION[] ?
I think this is a cookiething and a fresh request.
I DO see those fresh requests in my accesslogcreated by viewing source.

About the FF extensions:
I checked my FF extensions, and the only one that could possibly interfere
would be Webdeveloper1.1.3.
I disabled it, restarted FF, and checked: still the same problem.
:-(

I nailed down the problem to certain pages, it is NOT happening everywhere.
The impression I have at the moment is that is only happens on pages that
contain AJAXoid functionality. :-/
Beats me why because when I view the source, not one AJAX call is made.
(Not sure the problem lies there either.)
Me confused..

At least I have a page where this happens 100% of the time, with all
extension unloaded.

Does anybody have any ideas?

Regards,
Erwin Moller

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация