This is caused by an old bug relating to not rolling back transactions properly causing session data to not be flashed back to the user properly.