Re: Sessions - going back in browser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux