Re: [PHP] browser back button - Page has Expired.. problem

2002-01-29 Thread phantom

Also consider:

header(Cache-Control: public);
header(Cache-Control: max-age= . $this-allowcache_expire * 60);

This will allow to set the expiration of the cached file on the on the clients
browser.  The Cache Expire time is in minutes and can be found (and changed)
in the php.ini file.  Search keyword Cache in php.ini and it will be the first
thing you find.

Alex Vargas wrote:

 Just add this header

 header (Cache-Control: public);

 Alex.

 - Original Message -
 From: Lee P Reilly [EMAIL PROTECTED]
 To: PHP List [EMAIL PROTECTED]
 Sent: Monday, January 28, 2002 11:26 PM
 Subject: [PHP] browser back button - Page has Expired..  problem

  Hi,
 
  I wonder if anyone can offer me a few pointers..?
 
  I'm building a portal to do various bits and bobs. I'm using sessions to
  facilitate the user authentication/login, etc. The only problem I have
  is that when viewing these (.php) pages in IE once the session variable
  has been set, a Warning: Page has Expired  page is displayed whenever
  the 'Back' button is pressed. This means that the user can only access
  the page again by hitting 'Refresh' (and therefore posting the form data
  back  executing whatever scripts again).
 
  The rest of IE's error message reads, The page you requested was
  created using information you submitted in a form. This page is no
  longer available. As a security precaution, Internet Explorer does not
  automatically resubmit your information for you.
 
  I know from using other web applications (Hotmail is one example), that
  this doesn't always have to be the case. Is there anyway I can eliminate
  this security precaution on the *server side* i.e. without telling users
  to ditch IE ;-)
 
  Thanks very much in advance for any advice.
 
  - Best regards,
 
 Lee
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] browser back button - Page has Expired.. problem

2002-01-28 Thread Lee P Reilly

Hi,

I wonder if anyone can offer me a few pointers..?

I'm building a portal to do various bits and bobs. I'm using sessions to
facilitate the user authentication/login, etc. The only problem I have
is that when viewing these (.php) pages in IE once the session variable
has been set, a Warning: Page has Expired  page is displayed whenever
the 'Back' button is pressed. This means that the user can only access
the page again by hitting 'Refresh' (and therefore posting the form data
back  executing whatever scripts again).

The rest of IE's error message reads, The page you requested was
created using information you submitted in a form. This page is no
longer available. As a security precaution, Internet Explorer does not
automatically resubmit your information for you.

I know from using other web applications (Hotmail is one example), that
this doesn't always have to be the case. Is there anyway I can eliminate
this security precaution on the *server side* i.e. without telling users
to ditch IE ;-)

Thanks very much in advance for any advice.

- Best regards,

   Lee


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] browser back button - Page has Expired.. problem

2002-01-28 Thread Darren Gamble

Good day,

By default, IE will cache these pages (i.e. you won't get this message).

If you're receiving that message, it means that the browser doesn't have a
cached version of the page.  Getting a new version would obviously mean
submitting the form information again, which IE, thankfully, doesn't
automatically do.

It may be that the IE users aren't caching their pages, or the cache is
automatically cleaned (had this happen once with users writing onto their
profile).  Or, it may be that meta tags on the page have instructed the
browser not to cache the page, or to quickly expire it.  You should check
the page source for such headers.

I know it is tempting to trash-talk IE, but in this situation, regardless of
the problem, most likely the browser is just doing what the user or web page
has instructed it to do.


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-Original Message-
From: Lee P Reilly [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 3:27 PM
To: PHP List
Subject: [PHP] browser back button - Page has Expired..  problem


Hi,

I wonder if anyone can offer me a few pointers..?

I'm building a portal to do various bits and bobs. I'm using sessions to
facilitate the user authentication/login, etc. The only problem I have
is that when viewing these (.php) pages in IE once the session variable
has been set, a Warning: Page has Expired  page is displayed whenever
the 'Back' button is pressed. This means that the user can only access
the page again by hitting 'Refresh' (and therefore posting the form data
back  executing whatever scripts again).

The rest of IE's error message reads, The page you requested was
created using information you submitted in a form. This page is no
longer available. As a security precaution, Internet Explorer does not
automatically resubmit your information for you.

I know from using other web applications (Hotmail is one example), that
this doesn't always have to be the case. Is there anyway I can eliminate
this security precaution on the *server side* i.e. without telling users
to ditch IE ;-)

Thanks very much in advance for any advice.

- Best regards,

   Lee


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] browser back button - Page has Expired.. problem

2002-01-28 Thread Alex Vargas

Just add this header

header (Cache-Control: public);

Alex.

- Original Message - 
From: Lee P Reilly [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 11:26 PM
Subject: [PHP] browser back button - Page has Expired..  problem


 Hi,
 
 I wonder if anyone can offer me a few pointers..?
 
 I'm building a portal to do various bits and bobs. I'm using sessions to
 facilitate the user authentication/login, etc. The only problem I have
 is that when viewing these (.php) pages in IE once the session variable
 has been set, a Warning: Page has Expired  page is displayed whenever
 the 'Back' button is pressed. This means that the user can only access
 the page again by hitting 'Refresh' (and therefore posting the form data
 back  executing whatever scripts again).
 
 The rest of IE's error message reads, The page you requested was
 created using information you submitted in a form. This page is no
 longer available. As a security precaution, Internet Explorer does not
 automatically resubmit your information for you.
 
 I know from using other web applications (Hotmail is one example), that
 this doesn't always have to be the case. Is there anyway I can eliminate
 this security precaution on the *server side* i.e. without telling users
 to ditch IE ;-)
 
 Thanks very much in advance for any advice.
 
 - Best regards,
 
Lee
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]