Jump to content

Expire form after submitted if user attempts to go back


Recommended Posts

Not sure if this is the best place to be posting this topic so please let me know if this can better addressed somewhere else.  Anyways, I have a form, that upon submission creates a return shipping label automatically.  To avoid users going back and attempting to resubmit the form (which will thereby run the script to create another shipping label), I'd like to figure out a way to completely expire that form page...or redirect the user to another page if going back.

 

Any advice or resources would be much appreciated. Thanks!

This is typically done be sending a token along with the form. You can save the token to a session or temporary cookie when a form is submitted. Generate a new token on a legitimate form refresh. If the token matches one that was already set, it is a duplicate request.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.