Is it possible to automatically destroy the session in PHP, without manually check the session in PHP page.
I've searched for this , but the answers lead me to destroy the session manually.
I need this automatic concept, because right now I'm creating a simple bot on telegram to check whether the room is expired or not. Or the player has reached his maximum time limit to answer the question (e.g. 5 seconds).
I also found a concept to use a cron job that set for every second, for checking the session for each user or player. But i think, it will consume so much memory if i set it to every second, and i think the timeout won't be precise too.
I'm so happy if some of you can share any insight for this.
Thanks guya