Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Refresh Problem - Warning: Page Has Expired The Page You Requested Was Created Using Information


i got two php page at the movement, which they called edit2.php and edit3.php. when i submit a form from edit2.php to edit3.php, then i could not come back from edit3.php to edit2.php.

Warning: Page has Expired 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.

To resubmit your information and view this Web page, click the Refresh button. Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Warning: Page Is Expired
Can anybody tell me how to go on back page when using PHP Session. It give me Warning: Page is expired.

View Replies !
Page Has Expired Warning
I have seen several posts on this subject on the net, but no clear solution. I have a php page that presents a summary of 'objects', after which the user selects an object to see the 'detail' page of an object.  On this detail page there is a 'back to previous' hyperlink, which simply goes back 1 page in the history.

However, in this case, it always comes up with the Warning: page has expired first.
Since what I am trying to do is very standard and normal in PHP - is there anyway at all (without resorting to GET) to prevent this annoying behaviour?

View Replies !
Warning: Page Has Expired
Using PHP sessions on each page. At top of php pages have:

session_start();

Sessions work fine only when hit back browser button in IE get this warning:

Warning: Page has Expired

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. To resubmit your information and view this Web page, click the Refresh button.

View Replies !
Warning: Cannot Modify Header Information - Redirect From Login Page To Logged In Page
I am trying to redirect from login page to logged in page, but using the {header( 'Location: C:wampwww' ) ;} is giving me this error {
Warning: Cannot modify header information - headers already sent by (output started at C:wampwwwpassword.php:14) in C:wampwwwpassword.php on line 35}, find below my code:

View Replies !
"Warning: Page Has Expired" - How To Aviod When Using Browser Back Button?
In summary:
I want to a form to submit information via a HTTP POST, however, when using
Internet Explorer I want to be able to use the back button and all the
information retained. Presently we get a "Page has expired" message. How can
we avoid this?

Full details:
Having searched for postings on how to avoid the "Page has Expired" they are
numerous, however, I have not found one that answers the question
adequately.

Hence this posting.

One posting directed me to the following webpage:
http://in.php.net/session_cache_limiter

but I played around with "session_cache_limiter()" and it did not give the
desired results. (It seem to make no difference). Also many people say to
use HTTP GET instead but this is not an option in this case.

Where can I find concise definitive information on how to avoid "Warning:
Page has Expired" and allow the user to press the back button and see the
form as it was before they submitted it?

View Replies !
Go Back Without "page Has Expired" Warning
I have three pages: 1 2 3. Page 1 "posts" information to page 2, and page 2 uses "href=somePage.php?..." to send information to page 3. I would like to allow the user to be able to hit the back button to go  back to page 2 without getting the "page has expired" warning. I also want to stay away from "get" on page 1 if possible, and no javascript.

View Replies !
Page Expired After Going Back From Del. Pageto Form Page Where Comment Is Submitted..
i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add

When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history..

When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says:

Page has expired.

I wondered how to deal with this kind of problems........

View Replies !
Page Has Expired Message In Between The Php Page When I Click Back In Explorer Menu
I have a php script page, which is basically quiz. Visitors (after login in
with their email address) are supposed to answer each question, and when
they click the button at the bottom, the next page will show which problems
they got right or wrong.

Now my visitors, after seeing some problems they got wrong, click Back
button at the Explorer menu, and if they do, they get the below message:
=========================
Warning: Page has Expired 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.

To resubmit your information and view this Web page, click the Refresh
button.
========================
Below are the script that I am using. This scripts are after initial login
page, which asks for visitor's email address. I have authorized visitors
already in my MySQL table, and only the visitors whose email address is in
my MySQL table are allowed to login......

View Replies !
Page Redirection - Warning: Cannot Modify Header Information Headers Already Sent
Warning: cannot modify header information headers already sent( at start of D:search.php: 108) in d:search_play.php on line 242.i suggest a way I redirect or be automatically sent to a nother page without using header()? HTML Code:

//search.php is the html form
<form action="<php echo $SERVER['PHP_SELF'];?>" method = "post"> <!--line 108-->

PHP Code:

<?
//search_play.php process and display results
header("Location:../user_info.php"); //line 242

?>

View Replies !
Why Do I NOT Get The "Page Has Expired" Warning?
Normally, when you submit a form to a page using the POST method, and you subsequently use the browser's back button to navigate back to that page, it comes up with the standard warning "Page has Expired... To resubmit the information click the refresh button". I understand why that happens - the page resulting from a POST submission becomes immediately stale.

BUT... on one of my sites this isn't happening and I can't understand why. I can click Back and the page displays just fine. I don't want that to happen as I want to generate a unique transaction ID each time that page is displayed.

The page is submitted via POST to PHP_SELF but I've tried submitting it to a different page and that makes no difference.

Has anyone come across this problem before? I've been scratching my head for hours.

View Replies !
How To Refresh Page Without Prompt The "resend Information...."?
I wrote a PHP page for user input the information to search the
database. And the database data will update every second. I want to
set the auto refresh to get the data from database every minute. But
the page always display the dialog box ask me to resend the
information. How to disable this warning message. I using POST and
REQUEST to get the data from user input page.

View Replies !
Script Show The Requested Secure Page Apear In The Right Frame?
How do I have my formscript show the requested secure page apear in the right frame instead of popping up this page in a new window. I tried to fix it by writing " target=top" into the script line. Doesn't work ! Code;

View Replies !
Launch New Page And Refresh Exisiting Page
I know about not being able to change header info after output to the browser but what are the workarounds if any?

I have a basic form where a user logs in - the details they submit are verified in supportlogin.php and then if successful I launch another browser window with Javascript but the window in that they logged in at remains on supportlogin.php and is blank... How can I launch the new window and send the first window back to the login page? PHP Code:

View Replies !
Refresh Page With New Contents Without Leaving The Page?
Basicly what i want to do is: i have a bunch of links. when i click that links the dynamic content from a mysql db appear above the links. I need to do this without open a new page because i'm using mootools with the acoordeon script, and inside each "tab" theres contents. when i'm inside one tab i want to have links, and clicking each link new contents appears.

When i do this opening a new page is easy, i just put on the links something like newpage.php?id=games and then the page newpage.php open and the recordeset from games is echoed. but how to do that without leaving the page? refreshing or something like that.

View Replies !
Cookie - Page Load Or Page Refresh
this is supposed to show file1.txt, then file2.txt and so on on page load or page refresh. But it only shows the first 2 txt files. Can someone help me find out why?
I would think that as long as the cookie is still the same if (isset($_COOKIE['e'])) {
setcookie("e", $a++, time()+60*60*24*30);} that it would go to the next text file but its not. Please let me know, thank you very much.

<?php
$max_files = 12;
$a = 0;
if($a == 0) {setcookie("e", $a, time()+60*60*24*30);} /* expire 30 days*/
if (isset($_COOKIE['e'])) {
setcookie("e", $a++, time()+60*60*24*30);}
if ($a == $max_files)
$a;
$include_file = "file" . $a . ".txt";
include ($include_file);
?>

View Replies !
The Page Has Expired
I have a form based shopping cart, and when you try to move back an error is returned...

Warning: Page has Expired 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.

To resubmit your information and view this Web page, click the Refresh button. When I refresh the webpage the form is blank, From what I gathered from this forum, I should switch from post to get, which I tried but also didn't work. I need my customers to be able to go back and forth if then need to.

I did not design the cart, and the program says my request can't be done, but I shop a lot on line and have always be able to back up and go forward without loosing the information I entered. My darn cart erases everything and I know darn well I am going to lose a lot a business as a result of frustrated shoppers.

View Replies !
Page Has Expired
I have a support section of my site for admin and there is a login with a user name and password. once logged in I have sess vars storing the user's info. The problem I am having is in IE if the Admin is logged in and on a page and hits back to make a change he/she is greeted by a page that says Warning: Page has expired.

View Replies !
Page Expired
Warning:

Page has Expired 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.

To resubmit your information and view this Web page, click the Refresh button. Is there any way to fix that problem on one of my sites get that error when i use the back button?

View Replies !
Web Page Expired
Hitting the back button to a page that submitted and you get "web page expired"
Is there any way around that? Maybe with PHP headers?

View Replies !
My Page Always Expired ?
I'm writing a website in PHP at home, no internet connection.Im using a single software that give me Apache server, PHP..I have a small forum,after user added a topic, I redirect him to homepage, then if he click back button in IE ,

IE will say that the page he requesting is expired ?:confused: It says that my page was created by infomation submitted in a form, to see that page it has to resubmit that information ?

I have tried with this forum, I answear in quick reply to a topic, it showed me my reply, then I go to another page on the menu, then I click back, the page is not expired ?I got the page before I posted my reply.

View Replies !
Page Has Expired Error
At the minute when you search my site it will produce a result, but if you click back, it says page has expired.

View Replies !
How Can I Avoid A Page Expired Error?
The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.

View Replies !
Disable Backbutton - When Page Has Expired...
I have this on the page:
<?php
header("Pragma: no-cache");
header("Expires: -1");
?>

but I want it so, that when the user goes back, (s)he might not be
allowed too - say the session has expired.

How can i achive that?


View Replies !
The Session_cache_limiter Function Page Has Expired
I have various forms which are submitted using POST - which I do on forms which will result in a database update. The problem is that when people use the back button to get back to a page which resulted from a POSTed form they get the above standard IE warning message.

I've played around with the session_cache_limiter function but don't seem to get what I want. I don't want the browser to cache results. i.e. if the update being made is to delete an item from a list, then I don't want them to press the back button only to see the item is still there from the cache.

View Replies !
Page Expired, Please Refreh Note
when use back button, sometimes we get the "page expired, please refresh" note. Is there a way to avoid this note? Add a refresh javascript to this page to make it refresh every time will avoid this note, right? But it creates unnecessary refresh in the case we didn't back button to this page, it still refresh.

View Replies !
Refresh Page - Or An Absolute Refresh Not Reload.
If the image content for image1.jpg changes, but the file name image1.jpg
does not, IE6 does not show the new content unless F5 is pressed.

If I reload the page using http://domain.com/view_pictures.php the image
does not change.

If I use a header("LOCATION: http://domain.com/view_pictures.php"), the
image does not change.

I have tried several ideas to force the reloading of the image file with no
little success.

I cannot change the image file name.

Even if I add another a second image, the first image does not change.

IE must use the file name to determine if it should reload the file. But F5
works.

Is there a means in either php or JavaScript to call (force) a F5-keyboard
command? or an absolute refresh not reload.

View Replies !
Back Button, Page Expired, GET And POST
I have read you can solve the back button problem with the page expiration by using GET method instead of POST. When I use the GET method with form data, it doesn't work.

I have a page with a dropdown submitting to a page getting the variable via POST. Then it links to another page, and I want them to be able to come back to the second page. When I use GET instead of POST I get an error.

View Replies !
Session Expired -> Redirect User To Another Page.
I am using the new session management function from PHP4. session_start()
how do u redirect a user to another page if his session is expired? here is what i want to do:

1. user Tom enter his correct username and password.
2. my system use session_register() function register a variable in his cookie.
3. user Tom clicked Logout
4. my system use session_destory() function and redirect Tom to the login page.
5. Now, Tom click the 'BACK' button of his browser, a page showed 'page expired, hit reload button ... ...'.

here is my question, how do I redirect Tom to the login page if he clicked the BACK button?

View Replies !
Page Has Expired, BACK-button -problem
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?

View Replies !
If Session Expired Redirect Them To Login Page
when ever a user login, his information(name,login-time..etc) will be stored in sessions and also stored in users table. the table has following fields Code:

View Replies !
Image Upload File Limit - Page Expired
just a slight problem with my upload. If the file size is above 50k i display an error message but when i go back with the browser the page is expired how can i work around this please. code is as follows:-

<?php

if(!is_dir($store_dir) )
{
echo("Specified directory is not valid... Exiting");
@unlink($HTTP_POST_FILES['upfile']['tmp_name']);
exit();
}
if( copy($HTTP_POST_FILES['upfile']['tmp_name'],$store_dir.$test3) )
{
echo("");
}
else

View Replies !
Log Out - Page Expired Not Working Or Pressing Browser Back Button
I am a problem with I logout from my site. When I push log out link I send it to a new page with this script in this:

<?php
session_start();
session_unregister($SESSION);
session_destroy();
unset($SESSION);?>

In each page I have this other script
#accesscontrol.php
<?
session_start();
if (session_is_registered("SESSION")!= FALSE ) # ya la sesion existe entonces la cargo
{ #Maybe I use after. } else
{echo "<h1>Sorry...</h1>";
echo "<A href = "index.php"><H4> Login Univernet</H4> </A>";
session_destroy();
exit;}?>

The problem is when I log out and press the back button I am back to the pages. Sometimes it tells me that page expired but if I reload the page everything is ok and all my "security" pages are available.

View Replies !
Update Form Created Web Page
Is ther a way to update a page based on a text area in a form. I have a form that has two text areas one is for asking question of admin and the other is for public to see (Testimonial). What I need is if the user fills out the form and uses the Testimonial text area then the page is updated. If the question text area is used it doesnt update the page. In other words if the Testimonial text area is left blank the page doenst update. See code below. PHP Code:

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$sql = 'SELECT Testimonial , First_Name , Last_Name , Company , City , State , Date FROM Comments ORDER BY Date DESC LIMIT 0, 30 '

$result=mysql_query($sql);

$num=mysql_numrows($result);
if ($num==0) {
}else{
.......................

View Replies !
Warning: Session_start(): Read Returned Less Bytes Than Requested
I had installed php 4.3.7 on my system and test some php code.
But there is a serious problem. On my system(using apache2) the code,

<?php
session_start();
?>

gets some warning,

Warning: session_start(): read returned less bytes than requested in
/home/http/index.html on line 2

View Replies !
Dynamicly Created Page, With Refereing Url Shown
I have loads of domain names but none have any hosting space associated. They are however all entered into my DNS, so when any of them are visited, the visitor ends up at the (unused) home page of my dns server.

I would like to put a php (or perl, or whatever else is suitable) page here so the visitor is shown a more freindly page.

So, for example, a "Welcome to domain.com, this page is under construction / for sale" type page is what I would want. So all I would need to do for each domain to have it's own page would be to enter the domains in to my DNS and the rest would be automatic.

View Replies !
Php Created Popup Error Message Page
I have created a system using PHP & Javascript that works OK except that I want a neat display of error messages. Error messages caught at the client are displayed in a Javascript alert, which is fine. But errors caught at the server are not as well displayed and therefore I thought that I would ask if anyone has produced a "popup error message page" that would look similar to a Javascript alert but would originate at the server.

View Replies !
Can You Use PHP To Refresh The Page?
I would like a user to be able to click a link and the page will refresh, like pressing the refresh button on the browser. Can you do this in PHP?

View Replies !
Php Page Refresh
I have a Problem with Page refreshing in PHP, I tried all the available solutions from Forums but nothing helped me to solve the Problem, Here is My Requirement

1. I have a php page with list of Products say products.php
2. I went to newproduct.php from products page to add new product
3. Once the new product is added it comes to products.php in which it should show the products list with newly added product but it's not.
4. when i clicked on Refresh it is showing all the products including newly added product.
5. I added header with no-cache, must revalidate at the begining of each php page.

View Replies !
Refresh Page With Php
Was wondering how you would get the browser to update the data in a table, would it be possible to have PHP refresh the whole page?

View Replies !
Page Refresh
Now I have a drop down box, I select a user, hit approve and it updates their status in the database and SHOULD remove their name from the drop down box.
If I refresh the page a 2nd time after I click on the submit button, or if I approve another user, it will remove their name.
But it always takes 2 page refreshes to remove their name.

How can I make it so after I hit the approve button, their name is removed from the drop down list?

View Replies !
Refresh For The Page
i had plan to refresh the page with certain time? how should i done for it? and how to make the session expire with certain time?

View Replies !
Page Won't Refresh
I'm trying to use. Code:

header('location: ' . $_SERVER['PHP_SELF']);

...to refresh the page after deleting/editing an entry in the dbase but I always get this error : Code:

Warning: Cannot modify header information - headers already sent by
(output started at c:program fileseasyphp1-8wwwlinks-worklang-control.php:16)
in c:program fileseasyphp1-8wwwlinks-worklang-control.php on line 57

View Replies !
Refresh Page
I display all the contact info in list from data base I have some more user functon in same row like edit,delete,details. Now when I delete some contact from list then deleted from data base but show in the list for first time and after refreshing page it's disappear.

View Replies !
Refresh A Page
I have a login script, and you can log in either on the main page, child(?) page in a seperate window. Now if someone has logged in on a external page, then closes that window, they dont show up as logged in on the main page till they refresh it. I need for that page to automatically refresh just once when it comes back into focus, but its important that its just once.

View Replies !
Refresh The Page After Submit
Does anyone know how I can automatically refresh the page after the script is executed ( after user hits submit) and the database is updated, so that the line "The main office is now..." shows the new entry into the db? Thanks.

View Replies !
Refresh Page Code?
What code do you use to refresh a page after X number of seconds?

View Replies !
Refresh The Previous Page
This is a project that I am attempting in which a user is allowed to submit a programming code which the server will run.
The user submits the files from the client side. the user details will be written to a mysql database and the code is run. at the end of code run, the result will be posted back to the client which will then show a table of submissions made. Thus I reckon I need to perform a refresh on the client side but how do you go about doing this in php.

View Replies !
Sense Page Refresh On IE
I am able to sense page refresh (as opposed to submit) on firefox but
the code does not work on IE.

On firefox, $_SERVER['HTTP_CACHE_CONTROL'] returns 'max-age=0' but on
IE it always returns 'no-cache' which is why the code fails. How can i
sense page refresh on IE?

View Replies !
Page Does Not Refresh On All Browsers
I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh completely when the page calls it self. The refresh (which should happen when the form action
fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form, but it works well for me. On the machines that don't display the results properly a click of the Refresh (or Reload) button retrieves the new data?

The link to the page is:

View Replies !
Force A Refresh Of The Page?
Internet Explorer is making me crazy. Things that works OK with FireFox,
does not work properly with IE.

Situation:
PHP script A have a link to a PHP script B. Script B changes some $_SESSION
variables and then do a re-direct back to script A.

With FireFox, the page is refreshed when I click on the link to script B and
the results have be seen. But with IE, the page is not refreshed, so the
changes made due to changes in the session variables, is not visible for
the user. I have to press F5 or click on the Refresh-button in the toolbar
to make the changes visible.

Any hints about what I can do to force a refresh of the page?

View Replies !
Function That Will Refresh A Page
Is there a php function that will refresh a page, similar to JavaScripts location.reload()? I read somewhere that location.reload isn't supported in all browsers, so I want a php function that will be supported on most browsers.

View Replies !
Is There A Way To Prevent A Refresh Of A Page?
Is there a way to prevent a refresh of a page?
When a user refreshen on a certain page, pictures he already uploaded, will
upload again...



View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved