Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Avoiding accidential reposts

by Anonymous Monk
on Feb 26, 2014 at 02:55 UTC ( #1076214=note: print w/replies, xml ) Need Help??


in reply to Avoiding accidential reposts

If we'd supply a unique id for each comment session, could this be used to reject or warn about accidental reposts?

Sure, a nonce ( https://www.owasp.org/index.php/Session_Management#Page_and_Form_Tokens , Cryptographic nonce, Plack::Middleware::CSRFBlock ) should prevent double posting where the content isn't identical (identical duplicates should already be rejected)

I'm sure tye gods already thought of it when adding "prevent identical duplicates" feature and rejected it for some reason :)

... disabled ... Am I missing something?

so to prevent duplicates, a new database table/column is born?

I doubt that would be useful, I doubt "Nodes to consider" gets that much traffic , traffic for duplicates...

Replies are listed 'Best First'.
Re^2: Avoiding accidential reposts (saved previews)
by tye (Sage) on Feb 26, 2014 at 15:10 UTC
    I'm sure gods already thought of it when adding "prevent identical duplicates" feature and rejected it for some reason :)

    Doubt it.

    As I mentioned when LanX brought it up in chat yesterday, I'd also like the persisted nonce to be stored in the DB with the last-previewed text so a user could recover their unposted composition after a browser crash (if done quickly and not previewed anonymously).

    - tye        

      I thought this was sarcasm... :)

      Cheers Rolf

      ( addicted to the Perl Programming Language)

Re^2: Avoiding accidential reposts
by LanX (Cardinal) on Feb 26, 2014 at 03:11 UTC
    > (identical duplicates should already be rejected)

    is it?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Re^2: Avoiding accidential reposts
by LanX (Cardinal) on Feb 26, 2014 at 03:12 UTC
    > (identical duplicates should already be rejected)

    is it?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      have to test it again, both posts were not completely identical...

      Cheers Rolf

      ( addicted to the Perl Programming Language)

      update
      indeed, identical posts are suppressed: :)
      It looks like you've just tried to submit a node that has already been submitted. Luckily our staff in the control room was quick enough to press the Emergency Stop button before anyone got hurt.

      If you can't see your post, it probably hasn't been approved within its section by the moderators. Don't fret go to Newest Nodes and chances are it'll be listed there. Others will see it as well, so sit back, relax, and enjoy PerlMonking.

      If you want to see unapproved nodes as well as approved ones, go to your User Settings and turn on "Show Unapproved Nodes".

      If you need to change something about your node, you can go to it and edit it, even after you have submitted it. Alternatively, you can reply to your own node. Whatever you do, don't re-submit the same content! Our system isn't so unstable that node submissions get dropped on the floor.

        A more general solution would be desirable: a question will be rejected if it has been asked before... probably to difficult to implement.

      have to test it again, both posts were not completely identical...

      Cheers Rolf

      ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2021-04-21 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?