You don't.
PHP is not a resident program like IIS.
The big advantage of PHP sessions is that they last longer than one browse by the user, they don't have to time-out after 10 minutes.
But if you really want to I guess you should log the created SessionsID's to your database and check which ones are still available after X minutes. Those could be considered "crashed" and can then be stored in the database.