You are here: Re: [PHP] Sessions - going back in browser « PHP « IT news, forums, messages
Re: [PHP] Sessions - going back in browser

Posted by Richard Lynch on 04/20/05 06:39

On Tue, April 19, 2005 9:26 am, Craig Donnelly said:
> I had an issue that I needed to be able to go back in the browser while in
> a
> session without getting "page has expired", I was reading through the
> manual
> and came across a comment about adding the following to the sessions page
> to
> allow users to traverse back:
>
> header("Cache-control: private");
> (http://www.php.net/manual/en/function.session-start.php)
>
> This works fine on a Win32 dev box running Apache 1.3.x and PHP 5.0.3, but
> then I loaded the pages onto a RedHat box running PHP 5.0.3 on Apache
> 1.3.27. This box is running these pages through SSl (https)

Presumably you want the user to *NOT* be able to go back...

Different browsers, and different versions of different browsers, require
different headers, because they are following different "standards" or, in
some cases, not really following different standards.

You'll have to Google around and find all the headers about Expiration,
Cache-control, Pragma, and then add them all in, like a good stew, and
test and re-test until you find the ones that end up making all the
browsers you care about behave the way you want.

It would be nice if there were just *ONE* standard for this, that all the
browsers, past, present, and future, followed. There isn't.

--
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

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