You are here: Re: [PHP] handling a user pressing browser's back button « PHP « IT news, forums, messages
Re: [PHP] handling a user pressing browser's back button

Posted by Richard Lynch on 10/20/05 11:14

On Tue, April 26, 2005 11:51 am, James said:
> What have people done in the past to deal with states and such and
> keeping these things straight when the user hits the BACK button?

Best Option:
Don't design your application like that :-)

People use the browsers they use because they like its features.

Including, often, the feature you think is "bad" or "broken"

If you absolutely cannot live with that, you can send out all kinds of
headers to avoid caching.

There are about a half-dozen you have to send to get *EVERY* browser to
behave as well as you can get it -- which even then may not make you
happy...

Send expiration in the past, send all the no-cache and pragma headers.

Then test with every browser in every header combination and figure out
what works.

I used to have my canonical list of headers to do this -- But I simply
stopped trying to exert that much control over users and their back button
instead.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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