The client could regularly ping the server, maybe every 10 minutes. The server would update a "connected interval" record. If the time since the last ping is too long (maybe an hour, or N multiples of the ping interval), we assume the connection dropped and a new interval is created.
The client could regularly ping the server, maybe every 10 minutes. The server would update a "connected interval" record. If the time since the last ping is too long (maybe an hour, or N multiples of the ping interval), we assume the connection dropped and a new interval is created.