Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Shivamyadav's avatar

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:

  1. Reliability
  2. Preventing race conditions
  3. Handling browser crashes/tab closes
  4. Supporting scalability
  5. Avoiding false locks
  6. Security against bypassing frontend checks
0 likes
0 replies

Please or to participate in this conversation.