Generated Aug-08 22:57:59 GMT

You are not logged in.

Name: Password:

Or: Recover Account (Forgotten Password) / Register new user / Re-send validation email / Main Page

Maintenance is currently disabled.

ADVERTISEMENT

Website Discussion, Bug Reports and Abuse Reports

improper double post message

This thread is open.

Posted by anyeone 2009-01-07 15:16:12 GMT


I posted a thread in this forum, then went back to my game and attempted to post a different message in that forum a couple minutes later and I got an unfriendly "you are double posting" message.

The logic to test for double posts is a bit unwieldy, esp since it takes you off the current page and requires you renavigate back to the game afterwards (which took a couple clicks). Ideally you should run the validation on the current page and not redirect, and also the doublepost check should be for a shorter period of time - most true "double posts" are within just a few seconds.
-----

Posted by Hammerite This user is an administrator. 2009-01-07 15:50:59 GMT


Do you mean this?

It looks like you might be inadvertently attempting to double-post. Please return to the Main Page. If this was not the case, it is suggested to re-navigate to the thread (do not use your "back" button) and reattempt posting. Here is the text of your message:

I'm sorry you thought it rude. Do you think that this one is better?

It looks as though you might be inadvertently attempting to post your message twice. (This error message can also be caused by having two windows open and submitting messages in each, one after the other.) Please return to the Main Page. If this was not the case, it is suggested to re-navigate to the thread (do not use your \"back\" button) and reattempt posting. Here is the text of your message:

Posted by anyeone 2009-01-07 18:26:58 GMT


I didn't mean unfriendly as rude so much as just that it wasn't actually true and having to navigate back to the main page then back to the game was a pain. As I mentioned, I wasn't actually double posting - I was posting in two different boards two totally different messages, one to two minutes apart.

Posted by Hammerite This user is an administrator. 2009-01-07 18:37:41 GMT


It is a problem that comes with the way the system tries to detect double-posting. When you load a page that has a discussion thread on it, a hidden element of the html form looks at how many messages you have posted as a user, and submits that number with the form when you click "post". The system looks at that submission, and if it doesn't match the more updated figure it has, then it concludes you submitted the form twice from the same page. Of course, you might have opened a page, submitted a message from another browser window or tab, and then submitted a message from your newly opened page. Then the test the system uses will give a false positive. There is of course an argument for just testing the time since the user last posted, instead.

Posted by anyeone 2009-01-07 19:57:40 GMT


I would do it by time since user last posted - you can either hang that on the user session info or get it from the database, either way it's a very low bandwidth query/calculation that won't likely affect performance. (I'm a web app dev so I understand trying to keep performance up, from my experience occasional single-value queries aren't going to be a big hit).

You must log on in order to post messages.

Click here to return to the Board Page, or here to return to the Main Page.