# Prevent the second form-submit on server side

**URL:** <https://www.ruby-forum.com/t/prevent-the-second-form-submit-on-server-side/144160>\
**Category:** Rails\
**Created:** [July 26, 2008, 12:07am UTC](https://www.ruby-forum.com/t/prevent-the-second-form-submit-on-server-side/144160 "2008-07-26T00:07:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@ssk](https://www.ruby-forum.com/u/ssk)\
**Post date:** [July 26, 2008, 12:07am UTC](https://www.ruby-forum.com/t/prevent-the-second-form-submit-on-server-side/144160/1 "2008-07-26T00:07:13Z")

</div>

Hi,

I want to prevent users from re-submitting a form.  
Disabling the submit button would be a simple solution but not perfect.

A better solution would be using session/cookie on the server side.  
I want to know if there’s a plugin for that before I reinvent the wheel.

Thanks.

Sam
