Topic: Possible race condition in check_cookie()
I have noticed that some users can get logged in twice. This causes messages from that particular user to be displayed twice.
I think the problem may be that you we do a query to get online status, check the online status and then update the database. This would cause a race condition if it isn't done atomically. Hm.. is this the case or would the begin/commit enclosing prevent that?
I am using postgresql and latest punbb.
EDIT: Hm.. after some more checking it seems like the transactions really should prevent race conditions, but I can't see how a users could get inserted twice into the online table otherwise..