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

spook1's avatar

api session in laravel/vue app

The online classroom tool I intend to build works as follows:

  • Teacher (user) starts a session, and provides his/her classroom pin to students.
  • Student enters the pin and creates a quiz question + answer + alias
  • teacher starts the quiz: all questions are provided to all students
  • after the quiz a leaderboard is shown where aliases and scores are presented

The application consists of a laravel api and a vue frontend and therefore I cannot use sessions... Because of GDPR I prefer not to store email addresses.

I am looking for a solution to temporarily store the questions and aliases, and delete them afterwards.

Can anyone help me with a suggestion or point me to information on how to set up such a configuration?

0 likes
2 replies
bugsysha's avatar

Hook into the end of the quiz and then do what is required. You probably have some event or a trigger to signal that the quiz has ended. Use that to do what is required.

spook1's avatar

Sorry, I am a to much of a noob to understand this. It is to compcat for me 😔

Please or to participate in this conversation.