I have created an API for Quiz App that is handled by Server and i followed it through creating new socket. This Quiz is played by the students Firstly, the teacher pushes all the questions, they get pushed into the server, there is "Join" functionality for students, the questions gets broadcast to all the students, every question has time limit 10 sec. and the difference in between the questions is 5 sec. If teacher has pushed all the questions,then the quiz will run without any issue for all students who join. But the issue is if the teacher is still pushing the questions on server,if any student joins, it will create an issue. To resolve the issue, i have made this module to run in the backend by following: exec("php quiz.background.handler.php '".$messageObj->quiz_id."' '".$sess_id."' > background.log &"); but in that background process i am not able to get the session created by the joined student so that new questions will get broadcast to them also. Is there any way to get the session of the new joined user in the background process?????
Aucun commentaire:
Enregistrer un commentaire