Ask a Question related to PHP Development, Design and Development.
-
Jarkko Kähkönen #1
Page has Expired, BACK-button -problem
Hi!
I have Windows XP&IE6.0.2... (SP1).
I'm coding one project with PHP.
I get "Warning: Page has Expired" when I try to get back to the "POSTed
page" (page whither moved from FORM-page).
Better explanation:
- Pages are:
* Page A: Front-page
* Page B: Page where is www-FORM
#1.) From Page "A" I move to the page "B" by clicking link on page "A" and I
fill the form's fields
#2.) Then I click SUBMIT-button and I moved back to the page "A"
#3.) I move to the page "B" by clicking link on page "A"
#4.) I click "BACK"-button from browser
#5.) I got "Warning: Page has Expired"
I want that when I click BACK, I will be moved to the page "A" straightly
without warning
(of course then post-data can't get re-sent)
Got any idea how in PHP I can prevent this warning?
Thanks in advance!
Best regards,
Jarkko Kähkönen
Jarkko Kähkönen Guest
-
Page Has Expired Message in between the php Page When I click Back in Explorer Menu
Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are... -
Page has expired -problem
Hi! I have Windows XP&IE6.0.2... (SP1). I'm coding one project with PHP. I get "Warning: Page has Expired" when I try to get back to the "POSTed... -
Prevent 'Page has expired' when a client hits back to return to a search page
I have a search page that I want to enable private caching so that when a user hits the back button they dont get the page has expired error. I... -
My Page and BACK button
Can you rephrase your question? -- Dan Vallejo, Visual Studio and .NET Setup Team This posting is provided "AS IS" with no warranties, and... -
after logout, how to retrieve an expired page if user click 'back' button?
hi everyone, i've made a login and logout page, after user have logout, i want to retrieve an expired page if user click the 'back' button to... -
RG #2
Re: Page has Expired, BACK-button -problem
"Jarkko Kähkönen" <jarkko@kahkonen.com> wrote in message
news:bleh45$cts$1@mordred.cc.jyu.fi...I> Hi!
> I have Windows XP&IE6.0.2... (SP1).
>
> I'm coding one project with PHP.
> I get "Warning: Page has Expired" when I try to get back to the "POSTed
> page" (page whither moved from FORM-page).
>
> Better explanation:
> - Pages are:
> * Page A: Front-page
> * Page B: Page where is www-FORM
>
> #1.) From Page "A" I move to the page "B" by clicking link on page "A" and> fill the form's fields
> #2.) Then I click SUBMIT-button and I moved back to the page "A"
> #3.) I move to the page "B" by clicking link on page "A"
> #4.) I click "BACK"-button from browser
> #5.) I got "Warning: Page has Expired"
>
>
> I want that when I click BACK, I will be moved to the page "A" straightly
> without warning
> (of course then post-data can't get re-sent)
>
> Got any idea how in PHP I can prevent this warning?
>
> Thanks in advance!
>
> Best regards,
> Jarkko Kähkönen
>
>
I've just come up against this problem.
THere are 2 options, remove the cache header stuff or:
Get the refering URL and send back: $HTTP_SERVER_VARS["REFERER"]
Hope this helps
RG
RG Guest
-
Jochen Daum #3
Re: Page has Expired, BACK-button -problem
Hi Jarkko!
On Wed, 1 Oct 2003 15:25:41 +0300, "Jarkko Kähkönen"
<jarkko@kahkonen.com> wrote:
I use the following code on every page:>Hi!
>I have Windows XP&IE6.0.2... (SP1).
>
>I'm coding one project with PHP.
>I get "Warning: Page has Expired" when I try to get back to the "POSTed
>page" (page whither moved from FORM-page).
>
>Better explanation:
>- Pages are:
> * Page A: Front-page
> * Page B: Page where is www-FORM
>
>#1.) From Page "A" I move to the page "B" by clicking link on page "A" and I
>fill the form's fields
>#2.) Then I click SUBMIT-button and I moved back to the page "A"
>#3.) I move to the page "B" by clicking link on page "A"
>#4.) I click "BACK"-button from browser
>#5.) I got "Warning: Page has Expired"
>
>
>I want that when I click BACK, I will be moved to the page "A" straightly
>without warning
>(of course then post-data can't get re-sent)
>
>Got any idea how in PHP I can prevent this warning?
if ($_POST){
$_SESSION["postvalue"] = $_POST;
header("HTTP/1.1 302 Moved Temporarily");
header ("Location: ".BASE_URL.$sess->assemble(),true, 302);
header("Connection: close");
exit();
}else{
if (isset($_SESSION["postvalue"])){
$_POST = $_SESSION["postvalue"];
}
}
This redirects every post request to a get request and fills the
$_POST array transparently. as there is no POST request to "back" to,
you don't get the warning
HTH, jochen
-->
>Thanks in advance!
>
>Best regards,
>Jarkko Kähkönen
>
>
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
[url]http://sourceforge.net/projects/phpdbedittk/[/url]
Jochen Daum Guest



Reply With Quote

