From: <po...@mi...> - 2005-09-22 16:34:11
|
Hi all. "The page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out (such as = a search or online purchase) will be repeated. To resend the data, click = OK. Otherwise, click Cancel." - Firefox Are you still reading this? Please forgive the annoying beginning. How = many times have you seen the POSTDATA statement while using a web = application? (I guess the text varies depending on the browser you are using, but the meaning should be the same). It occurs when you hit the browser back button, trying to get back to = the previous page, but only if that specific page is the result from a POST action. Let me give you an example from phpWebSite, just in case I have lost = you: 1. Create an announcement After saving the announcement, you will return to the announcement list. 2. Click on a link. Any link will do. Pick for instance the link showing = the announcement you just have created. Now try to go one step back, using the back button in your browser. You = will now get the POSTDATA statement from the browser, asking you what to do. There is a solution to this problem, and the keyword is redirect. It is described in details in this article: http://www.theserverside.com/articles/article.tss?l=3DRedirectAfterPost The summary of the article from theserverside is: - Never show pages in response to POST - Always load pages using GET - Navigate from POST to GET using REDIRECT I am not sure, if php supports the redirect function, but I know that I would like to get rid of the annoying possibility of posting data twice. Hopefully implementing the redirect strategy (if possible) is not too = late to be considered as a part of the upcoming release of Fallout.=20 Michael H. Rasmussen TechElephant |
From: Matthew M. <ma...@tu...> - 2005-09-22 20:40:30
|
We can work on getting more post completions to have redirects at the end. The problem is that after a post you may want to post a message. If you want that message to be seen you either have to use a meta redirect or you would have to pass the message itself or a trigger to the next page. So it depends on what action is being taken. Matt On Thu, 2005-09-22 at 18:33 +0200, Michael H=C3=B8j Rasmussen wrote: > Hi all. >=20 > "The page you are trying to view contains POSTDATA that has expired fro= m > cache. If you resend the data, any action the form carried out (such as= a > search or online purchase) will be repeated. To resend the data, click = OK. > Otherwise, click Cancel." - Firefox >=20 > Are you still reading this? Please forgive the annoying beginning. How = many > times have you seen the POSTDATA statement while using a web applicatio= n? (I > guess the text varies depending on the browser you are using, but the > meaning should be the same). >=20 > It occurs when you hit the browser back button, trying to get back to t= he > previous page, but only if that specific page is the result from a POST > action. >=20 > Let me give you an example from phpWebSite, just in case I have lost yo= u: >=20 > 1. Create an announcement >=20 > After saving the announcement, you will return to the announcement list. >=20 > 2. Click on a link. Any link will do. Pick for instance the link showin= g the > announcement you just have created. >=20 > Now try to go one step back, using the back button in your browser. You= will > now get the POSTDATA statement from the browser, asking you what to do. >=20 > There is a solution to this problem, and the keyword is redirect. It is > described in details in this article: > http://www.theserverside.com/articles/article.tss?l=3DRedirectAfterPost >=20 > The summary of the article from theserverside is: >=20 > - Never show pages in response to POST > - Always load pages using GET > - Navigate from POST to GET using REDIRECT >=20 > I am not sure, if php supports the redirect function, but I know that I > would like to get rid of the annoying possibility of posting data twice. >=20 > Hopefully implementing the redirect strategy (if possible) is not too l= ate > to be considered as a part of the upcoming release of Fallout.=20 >=20 >=20 > Michael H. Rasmussen > TechElephant >=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server.=20 > Download it for free - -and be entered to win a 42" plasma tv or your v= ery > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.p= hp > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers --=20 Matthew McNaney Electronic Student Services Appalachian State University http://phpwebsite.appstate.edu |
From: Matthew M. <ma...@tu...> - 2005-09-28 13:52:24
|
Hello, Quick update on this Michael. I am going to be more aggressive in implementing this. It really only takes two functions to cover all bases. In the Access module I have a sendMessage() function. I send it the message I want on the next page and the command that needs to be run. Then on the next page, the proper page is pulled up via the command and I automatically pull whatever message is in the session then unset it. Quick and easy :) I'll work on putting this with other posts. Thanks Matt On Thu, 2005-09-22 at 16:30 -0400, Matthew McNaney wrote: > > Hopefully implementing the redirect strategy (if possible) is not too late > > to be considered as a part of the upcoming release of Fallout. > > > > > > Michael H. Rasmussen > > TechElephant > > > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. > > Download it for free - -and be entered to win a 42" plasma tv or your very > > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > Phpwebsite-developers mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers -- Matthew McNaney Electronic Student Services Appalachian State University http://phpwebsite.appstate.edu |