May 20, 2026
0
Level 20
Prevent Users From Opening the Same Test in Multiple active Tabs?
I am building an online test/exam system in Laravel where users access URLs like:
http://manual5.uishare.local/test/{id}/attempt
I want to prevent a user from:
Opening the same test in multiple tabs
If a test is already active, I want to show a message like: "This test is already active in another session/tab."
My concerns:
- Reliability
- Preventing race conditions
- Handling browser crashes/tab closes
- Supporting scalability
- Avoiding false locks
- Security against bypassing frontend checks
Please or to participate in this conversation.