You have gotten some good answers, but the most obvious, and the recommended first measure wasn't mentioned:
Tell your users to not click twice.
If you just put a little text saying "this will take a litle while, please do not click more than once on this button", you will get rid of 90% of the problem, or more.
You still should have some kind of fallback in the code, as suggested and shown, but this is where you start.
I also don't really know what you mean with "nor to use more cookies", especially the word "more" confuses me. If you can set some cookies (which the word implies), there is no hindrance at all for you to add more, is there?
You have moved into a dark place.
It is pitch black. You are likely to be eaten by an ant.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.