RE: page expire error

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

 



Hi,

You could do it with post, if you set the right headers in your script.

http://nl2.php.net/manual/en/function.header.php

"Text from php.net"

PHP scripts often generate dynamic content that must not be cached by the
client browser or any proxy caches between the server and the client
browser. Many proxies and clients can be forced to disable caching with: 



<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>  



Note: You may find that your pages aren't cached even if you don't output
all of the headers above. There are a number of options that users may be
able to set for their browser that change its default caching behavior. By
sending the headers above, you should override any settings that may
otherwise cause the output of your script to be cached. 

Additionally, session_cache_limiter() and the session.cache_limiter
configuration setting can be used to automatically generate the correct
caching-related headers when sessions are being used. 

Remember that header() must be called before any actual output is sent,
either by normal HTML tags, blank lines in a file, or from PHP. It is a very
common error to read code with include(), or require(), functions, or
another file access function, and have spaces or empty lines that are output
before header() is called. The same problem exists when using a single
PHP/HTML file. 
 
Greetz


-----Oorspronkelijk bericht-----
Van: Barry [mailto:barry@xxxxxxxxxxxxxx] 
Verzonden: dinsdag 28 maart 2006 9:46
Aan: php-general@xxxxxxxxxxxxx
Onderwerp:  Re: page expire error

suresh kumar wrote:
> Hai,
>     i am facing one problem in my project.I am using 2
> pages for search operation.
> 
>    In Search page 1:
>                     i am having 3 fields say Company
> name,state,country. when user enters search key in
> their corresponding field and press submit button.
> search result will be displayed in  another page
> "Search result page".when i click back button in
> browser toolbar.it is displaying error message as
> 
> "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 am storing the field name in session.

That's because you use Forms.
The Explorer is just telling you that he don't will submit the posted 
formvars again.

Well the message is very selfexplaining, but probably not easy to 
understand for you because i suggest you don't speak english that well.

If you can live with some security problems use method="GET" rather than 
method="POST" this will give you no errors in this case probably.

Greets
	Barry
-- 
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 27-3-2006
  

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/295 - Release Date: 28-3-2006
 

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