Avoiding duplicate submissions

Dave Germiquet davegermiquet-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Jan 25 20:53:13 UTC 2007


Hi Madi,

If your using postgres couldn't you add something in your web app which sets
a transaction number and if it sees that transacation number it would not
resubmit?

I'm thinking your resubmitting the whole code you implemented. so thats why
it is being resubmitted.


On 1/24/07, Madison Kelly <linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org> wrote:
>
> Hi all,
>
>    I am trying to resolve an old problem that I am sure some of you here
> have dealt with.
>
>    I've got a web app (perl+apache+postgres) that, for security reasons,
> only allows cgi variables to be passed as POST (so
> http://foo.com/cgi-bin/app.cgi?var=val&bar=baz fails). So this means all
> data is passed via forms. This may or may not be an issue, I dunno but I
> wanted to mention it.
>
>    So, I tried using a refresh page. When a form was originally
> submitted or edited I would show a screen telling the user the save was
> successful and then refresh to reload the record (with changes applied).
> The problem is, somehow, the cgi variables remain so if a user refreshed
> their browser the data would resubmit. I don't see the cgi variables
> being passed when the refresh page calls the next page, so I am guessing
> it's in the user's browser somewhere. Perhaps not and I missed it?
>
>    So a) can this be fixed and if so, how? Or b) what other scheme could
> I use to prevent duplicate submissions?
>
> Thanks all!
>
> Madi
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20070125/1330ee5f/attachment.html>


More information about the Legacy mailing list