You are here: Re: PHP and Internet Explorer « PHP Programming Language « IT news, forums, messages
Re: PHP and Internet Explorer

Posted by Justin Koivisto on 10/08/91 11:36

Jørn Dahl-Stamnes wrote:
> Internet Explorer is making me crazy. Things that works OK with FireFox,
> does not work properly with IE.
>
> Situation:
> PHP script A have a link to a PHP script B. Script B changes some $_SESSION
> variables and then do a re-direct back to script A.
>
> With FireFox, the page is refreshed when I click on the link to script B and
> the results have be seen. But with IE, the page is not refreshed, so the
> changes made due to changes in the session variables, is not visible for
> the user. I have to press F5 or click on the Refresh-button in the toolbar
> to make the changes visible.
>
> Any hints about what I can do to force a refresh of the page?

It is likely due to differences in the way IE reads headers compared to
other browsers... Below is what I have been using for other purposes
that are similar. However, I haven't tested this exact case.

header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');

// USER_AGENT_IE is a constant defined earlier in the script if we could
// tell that the user is (or wants us to think they are) using internet
explorer.
if(USER_AGENT_IE){
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
}else{
header('Pragma: no-cache');
}

I'm sure someone in here is more capable than I to explain all the HTTP
header stuff as I am not an expert in that field by any means...

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com

 

Navigation:

[Reply to this 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

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