我创建了自己的模块，它具有使用表单API创建的表单。问题是，当用户点击表单上的表单上的链接时，然后击中链接，然后击中浏览器上的后退按钮，然后用户获取"文件过期的消息" 。文档是不再可用" 。
I created my own module and it has a form that is created using the Form API. The problem is that when a user clicks on a link on the form after hitting the submit button, and goes to the link, and then hits the BACK button on their browser, then the user gets a message of "Document expired. The document is no longer available".
How can I make it so that the user can hit their BACK button and be taken back to the form?
A better solution might be to add a link on the page that the user sees after the form, that takes them back to the form. You might need to put back in some session values. If the form was already submitted, you'll want to decide whether to load their submission or take them to a blank, new form.
I didn't really solve the issue technically, but I used a workaround and made my links use "target=_blank" to force open in a new tab/window. This prevents the user from hitting the BACK button. It's not a clean solution, but will suffice. :(