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

Session Timeout

Open flippz opened this issue 2 years ago • 10 comments

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?

flippz avatar May 25 '22 20:05 flippz

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

dave-p avatar May 26 '22 10:05 dave-p

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

flippz avatar May 26 '22 13:05 flippz

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.

dave-p avatar May 26 '22 18:05 dave-p

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 avatar May 26 '22 19:05 flippz

Does it need to be in TVHadmin-JS directory?

flippz avatar May 26 '22 19:05 flippz

Nope that did not make any difference

flippz avatar May 26 '22 19:05 flippz

Any thoughts?

flippz avatar May 30 '22 13:05 flippz

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.

dave-p avatar May 30 '22 19:05 dave-p

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.

flippz avatar May 30 '22 21:05 flippz

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?

dave-p avatar May 31 '22 07:05 dave-p