TVHadmin-JS icon indicating copy to clipboard operation
TVHadmin-JS copied to clipboard

User configuration not persistent

Open riban-bw opened this issue 5 months ago • 3 comments

If I save configuration, e.g. favourtie channels then open a browser on another device or sometimes on the same device, this config is reset, e.g. there are no entries in the favourite channels list.

riban-bw avatar Nov 15 '25 13:11 riban-bw

User settings are stored as 'cookies' in the browser, in the same way as the Tvheadend UI. The cookie lifetime is 10 years.

dave-p avatar Nov 15 '25 13:11 dave-p

Understood! Thanks for explaining this. It isn't a great way to store user configuration and I am suprised that tvheadend does this! (Indeed, when I change a user setting in tvheadend's webgui, it changes for other devices too - so does not seem to be pesisted purely in cookies. Maybe there is a push-to-server API call.) User config should ideally be persistent for the user from any device and not depend on them setting up their preferences on every device they use. I guess many users will only access this from the same device so it may be of limited impact but I would recommend user config be stored elsewhere.

riban-bw avatar Nov 15 '25 14:11 riban-bw

Tvheadend's cookies store things like the column choices for the grid displays and the user's status level. There isn't a way to store data on the server.

The PHP version of TVHadmin on the other hand stores config settings on the PHP server - including the Tvheadend user credentials - which means that everyone gets the same settings.

dave-p avatar Nov 15 '25 14:11 dave-p