“警告:网页已过期” - 使用浏览器后退按钮时如何避免? [英] "Warning: Page has Expired" - How to aviod when using browser back button?

查看:117
本文介绍了“警告:网页已过期” - 使用浏览器后退按钮时如何避免?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




摘要:

我想通过HTTP POST提交表单,但是,使用

Internet Explorer我希望能够使用后退按钮和保留的所有

信息。目前我们得到一个页面已过期信息。我们如何避免这种情况?


详细信息:

搜索过如何避免Page has过期"他们很多,但是,我还没有找到一个能够充分回答问题

的人。


因此这个帖子。


一篇帖子指示我访问以下网页:
http://in.php.net/session_cache_limiter


但是我玩了session_cache_limiter()并且它没有给出

期望的结果。 (它似乎没有区别)。还有很多人说

使用HTTP GET,但在这种情况下这不是一个选项。


我在哪里可以找到有关如何避免的简明确定信息警告:

页面已过期并允许用户按下后退按钮并查看

表格,因为它们是在提交前提供的?


亲切的问候,

Dave

Hi,

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?

Kind regards,
Dave

推荐答案

Dave Smithz写道:
Dave Smithz wrote:


总结:
我希望表单通过HTTP POST提交信息,但是,当使用
Internet Explorer时,我希望能够使用后退按钮和所有保留的信息。目前我们得到一个页面已过期信息。我们如何避免这种情况?
Hi,

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?




使用GET代替POST


请参阅< http:// www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.10>


-

phil [dot] ronan @ virgin [ dot] net
http://vzone.virgin.net/phil。 ronan /


Dave Smithz写道:
Dave Smithz wrote:
总结:
我想通过表格提交信息但是,当使用Internet Explorer时,我希望能够使用后退按钮和
所有保留的信息。目前,我们收到了Page has expired消息。我们怎样才能避免这种情况?
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?




除了明显使用GET而不是POST之外,还有另外一种方法。这个

涉及将表单数据提交到中间页面,该页面通过header()函数向第三页发送

位置标题,这可以是

用于预览提交的数据或显示消息(谢谢,数据

包含错误等)。


当用户点击时在第三页的后退按钮,中间页面

将被跳过,表格页面将显示,没有警告。

JW


Janwillem Borleffs写道:
Janwillem Borleffs wrote:
Dave Smithz写道:
Dave Smithz wrote:
总结:
我想通过HTTP POST提交表单,但是,当使用Internet Explorer时,我希望能够使用后退按钮和
保留的所有信息。目前,我们收到了Page has expired消息。我们怎样才能避免这种情况?
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?



除了明确使用GET而不是POST之外,还有另外一种方法。这需要将表单数据提交到中间页面,中间页面通过header()函数将
Location头部发送到第三页,可以用来预览提交的数据或者显示一条消息(谢谢,数据
包含错误等)。

当用户点击第三页上的后退按钮时,将跳过中间页面
表格页面将显示,没有警告。



Apart the obvious usage of GET instead of POST, there''s another way. This
involves submitting the form data to an intermediate page, which sends a
Location header through the header() function to a third page, which can be
used to preview the submitted data or to show a message (Thank you, Data
contains errors etc.).

When the user hits the back button on this third page, the intermediate page
will be skipped and the form page will be shown, without the warning.




只有两个问题:


1.访客''浏览器必须提交两次POST数据


2.对POST重定向的浏览器支持相当不可靠(参见

< http:// ppewww。 ph.gla.ac.uk/~flavell/www/post-redirect.html>)


-

phil [dot] ronan @ virgin [ dot] net
http://vzone.virgin.net/phil。 ronan /


这篇关于“警告:网页已过期” - 使用浏览器后退按钮时如何避免?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆