PHP - Auto Destroy Session Without Invoking PHP page
<p>Is it possible to automatically destroy the session in PHP, without manually check the session in PHP page.</p>

<p>I've searched for this , but the answers lead me to destroy the session manually.</p>

<p>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).</p>

<p>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.</p>

<p>I'm so happy if some of you can share any insight for this.</p>

<p>Thanks guya</p>