Recently we have faced a serious problem, that one user was served data of another user. This problem is almost impossible to reproduce.
We are using standard logged
One of possible problems may be second login attempt. Consider following case:
In most browsers it will be the same HTTP session. So actually you will have data from user_1 and user_2 combined in one HTTP session. Any page that uses session objects may be affected.
You have two options here:
You can prevent second login attempt thanks to Concurrent Session Control fetaure:
...
Is it already done in your application?