Prevents rare race condition during user login
authorAlexander Ebert <ebert@woltlab.com>
Sun, 25 May 2014 20:35:49 +0000 (22:35 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 25 May 2014 20:35:49 +0000 (22:35 +0200)
commit46dd7463a7dac713dfe7a217b5edf97d25c0d376
treedb447ac3fb64301857278e528f06b9623043e664
parent78db75cffcb04c8d4c5dcd882ead00e5c9b752ef
Prevents rare race condition during user login

In some cases it might happen, that two logins for the same users occur almost synchronously (e.g. starting browsers with two or more tabs pointing to the same URL). In that case it is possible that two session would have been created since the creation of the session takes place after the check from the second request passed.
wcfsetup/install/files/lib/system/session/SessionHandler.class.php
wcfsetup/setup/db/install.sql