Jump to content

Expire form after submitted if user attempts to go back


frshjb373

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.