Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to avoid accidental re-sending of POST data
Hi,

this must be a common problem and I was wondering what commonly used
strategies to solve it are:

How can I avoid that a user re-sends a POST form when hitting the reload
button on a result page?

The browser typically warns you when you want to do that but I was
wondering whether there is an easy way to make it impossible.


Thanks for any hint!
Ingo Weiss









Report this thread to moderator Post Follow-up to this message
Old Post
Ingo Weiss
12-02-04 01:55 PM


RE: How to avoid accidental re-sending of POST data
Ingo Weiss wrote:
> Hi,
>
> this must be a common problem and I was wondering what commonly used
> strategies to solve it are:
>
> How can I avoid that a user re-sends a POST form when hitting the
> reload button on a result page?

You can't. If the transaction is not repeatable, you need to have some way
on the server side to detect that the transaction has been previously
submitted and reject it on subsequent submissions.

Assigning a unique transaction ID number to each transaction is one way of
doing it.

>
> The browser typically warns you when you want to do that but I was
> wondering whether there is an easy way to make it impossible.

Nope. You have to deal with it on the server side.

Report this thread to moderator Post Follow-up to this message
Old Post
Bob Showalter
12-02-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:23 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.