expire a page after form submission

  • dheerhot
  • Novice
  • Novice
  • User avatar
  • Posts: 34

Post 3+ Months Ago

i have a registration form & as the user registered by clicking on submit button, he has been redirected to the thanks page. Now the problem is when he clicks on back button of the browser he get the form filled with previous data. So for protecting this i want to expire that registration form after submission.

Is there is any way to do it....
  • devilwood
  • Silver Member
  • Silver Member
  • User avatar
  • Posts: 447

Post 3+ Months Ago

You probably need to look into using sessions. I would think if you start a session on the forms page, but not continue it onto the thanks page then when the user hits back they will probably see a 'warning page has expired' message. If you want the form to be displayed again you would have to just test that the session data is getting destroyed properly and re-created. or...

Lastly, you could always destroy or nullify the variables that populate the form with the previous data so the user will see a blank form and then not worry about using sessions if the form is public anyway.

Is your form in php?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 32 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.