[Enhancement]: Add session timeout for session to prevent long hanging sessions #2736

Open
opened 2026-04-25 00:10:02 +02:00 by adam · 0 comments
Owner

Originally created by @ZLoth on GitHub (Apr 29, 2025).

Type of Enhancement

Server Backend

Describe the Feature/Enhancement

It would be ideal if ABS would implement a session timeout feature so that if the playback is paused for more than XX minutes (1-99 minutes), the session is closed and a new one is created when playback is resumed. At least 1 minute is required as playback is paused if there is a notification bell or Google Maps is providing instructions. This should apply to both the web player as well as the application.

Why would this be helpful?

Based upon the logs from the Android v0.9.79 client, a session is started when playback begins on a title, but then accumulates as the session continues no matter how long the app is paused... even if that pause lasts into the next day. This can mess up daily statistics as all accumulated time is added to that start date's statistics.

Session Log.zip

Image

Future Implementation (Screenshot)

No screenshot.

Audiobookshelf Server Version

2.21.0

Current Implementation (Screenshot)

There is no existing screenshot.

Originally created by @ZLoth on GitHub (Apr 29, 2025). ### Type of Enhancement Server Backend ### Describe the Feature/Enhancement It would be ideal if ABS would implement a session timeout feature so that if the playback is paused for more than XX minutes (1-99 minutes), the session is closed and a new one is created when playback is resumed. At least 1 minute is required as playback is paused if there is a notification bell or Google Maps is providing instructions. This should apply to both the web player as well as the application. ### Why would this be helpful? Based upon the logs from the Android v0.9.79 client, a session is started when playback begins on a title, but then accumulates as the session continues no matter how long the app is paused... even if that pause lasts into the next day. This can mess up daily statistics as all accumulated time is added to that start date's statistics. [Session Log.zip](https://github.com/user-attachments/files/19949488/Session.Log.zip) ![Image](https://github.com/user-attachments/assets/75ceb926-3645-45f2-aaa6-c9fc7997da26) ### Future Implementation (Screenshot) No screenshot. ### Audiobookshelf Server Version 2.21.0 ### Current Implementation (Screenshot) There is no existing screenshot.
adam added the enhancement label 2026-04-25 00:10:02 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2736