Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
All right, I've found out what was wrong. I was storing too many things in the session. I stored user IDs, admin IDs, participant IDs and some other things too. Now if the user used several tabs it...
#1: Initial revision
All right, I've found out what was wrong. I was storing too many things in the session. I stored user IDs, admin IDs, participant IDs and some other things too. Now if the user used several tabs it was possible that old session contents overwrote new session content owing to the fact that browsers don't do things sequentially any more. The problem went away when I reworked my sessions to only use one key that referred to an ID of a record in a DB table called sessions, and I store all the different user, admin and other data in this record. The ID of that record never changes, so the browser can do things in whatever order it likes.
