Recently, we have been developing an evaluation system that involves a simultaneous test process. Previous
ProgramThe member writes this part
CodeLater, when two people tested, they found that the data submitted by the two was always stored in one of the records.
Is it because of cookie verification? I did not think so from beginning to end, but the boss seemed to be skeptical about my ability and repeatedly criticized me for my verification.
So we replaced the cookie test with session, and the results were the same.
When the project is about to end, there is such a super bug, and several people are worried.
Success often lies in thinking and calm down ..........
Why is it a string? it's a question about userid. Let's look at the userid value assignment process. Suddenly realized.
Private Static userid appears. Again, the variables on the entire test page are almost static. This is absolutely not allowed in Asp.net. So I was tired and half-dead, and changed them to viewstate.
Take it for granted!