This is a question of session state management. I’m developing a presentation application where there are three levels of state within the application/module. This application is a module that is independent of all other like modules that could be running at the same time.
The principle of the application is that there is a moderator/admin that can control the timing on multiple slide/text pages. Numerous participants can log in to participate in the each presentation. Each participant can see all other participant’s names that are logged in to the same presentation but can only control their own state (login/logout, and other controls).
The top level of state is the presentation level and encompasses all other levels of that presentation.
The second level is the presentation administrator who can control each slide of the presentation that all participants can see.
The third is the participant level of a presentation where multiple participants can log into a presentation and can see the names of all the other participants that are logged in but can only control their own login/logout and individual controls.
My problem is that when multiple presentations are being given simultaneously, all participants from simultaneously running presentations show up in all the presentations and not just the presentations that they signed in to. What scope variables can I use to:
1. Keep each presentation module’s variables unique from all other simultaneously running presentations.
2. Keep each participant’s variables unique from each other in the same presentation.
I’m not looking for actual code but coding strategies. I really appreciate any help you can give!!!