dave-p / TVHadmin-JS

A javascript front-end for Tvheadend, inspired by VDRadmin
GNU General Public License v3.0
29 stars 7 forks source link

Session Timeout #4

Open flippz opened 2 years ago

flippz commented 2 years ago

There seems to be a timeout after about 5min after wich i have to log in again. Can this be changed so thats at least an hour?

dave-p commented 2 years ago

I'm not sure what exactly is timing out for you. Is it access to all of TVHadmin or just the streaming functions?

flippz commented 2 years ago

If i idle on the Whats on now screen and have Refresh Whats On Now and Timeline screens: set to on. Then the login box will appair after a few minutes. I found out that if i have tvheadend logged in on another tab this issue is not happening, so its only if i go directly to tvhadmin and login from there and dont have tvheadend open

dave-p commented 2 years ago

I've tried with two browsers (Firefox and Chromium) and two PCs, but cannot replicate this behaviour. Could there be something in your systems or network which is causing it? TVHadmin relies on your browser to handle authentication with TVH. It seems that the browser is forgetting the credentials after a few minutes.

flippz commented 2 years ago

The issue was made avare to my by somebody else loging into my tvhadmin so at lease on two different systems the falt is there. It could be my tvheadend server but i dont know what to look for to fix this then... Like i sayd if i keep a tab in chrome open with the tvheadend webpage open and im logged in to it then tvhadmin has no problems. If i open tvhadmin directly without tvheadend open it asks for login every 5 mins or so...

flippz commented 2 years ago

Does it need to be in TVHadmin-JS directory?

flippz commented 2 years ago

Nope that did not make any difference

flippz commented 2 years ago

Any thoughts?

dave-p commented 2 years ago

I've tried various experiments but cannot replicate this behaviour. I wonder if there is something in your systems or network which is causing it, maybe a VPN or NAT proxy which times-out and makes TVH refuse previous authentication? When you have the TVH client open on another tab or browser, TVH is sending disk space usage every 15 seconds, preventing any timeout.

flippz commented 2 years ago

Cant seem to find any settings that help. I tryed from my phone and from another location and still after about 5 min it asks for login again.

dave-p commented 2 years ago

What version of TVHeadend are you using (git commit number)? Was TVHadmin-JS installed as described in the README? Which browser(s) are you using? What do you see in the browser's developer console when the login prompt appears?