Page 1 of 1
user logged in timeout?
Posted: Mon Jun 01, 2015 5:59 pm
by bencollinz
In ZM 1.25, I could keep my 'stream' (displays certain cameras on living room wall) account logged in for days, if not weeks at a time. Now in 1.28.1, the monitor feeds will freeze (not a set amount of time, random), I hit refresh and I have to log in again with guest account, whereas before I could just hit refresh.
I have not tried with admin account, yet.
Are there any settings I can look into?
Thank you
Ben
Re: user logged in timeout?
Posted: Sun Jun 07, 2015 6:11 pm
by bencollinz
I tried with admin account as well, no difference.
Re: user logged in timeout?
Posted: Mon Jun 08, 2015 2:16 pm
by bencollinz
I disabled user authentication and same result.
Re: user logged in timeout?
Posted: Thu Jun 11, 2015 9:43 pm
by bencollinz
well, the only way I could get around this was to turn off authentication and install an add on for firefox to autoreload every 15 minutes.
not ideal, however.
Re: user logged in timeout?
Posted: Thu Jun 11, 2015 11:10 pm
by asker
I've been trying to find out the same too - haven't figured out (yet) which part of the code is doing this. There are no cookies that control this for sure. You said it was random -- do you know an approximate time period?
Also, can you check something for me -- please go to the directory where zone minder is installed and let me know if you have a file called core.php somewhere there
thx
Re: user logged in timeout?
Posted: Fri Jun 12, 2015 1:44 am
by bencollinz
asker wrote:
Also, can you check something for me -- please go to the directory where zone minder is installed and let me know if you have a file called core.php somewhere there
thx
There is no core.php ANYWHERE including /usr/share/zoneminder (where zm looks to be installed)
Re: user logged in timeout?
Posted: Fri Jun 12, 2015 12:17 pm
by asker
Okay, thanks that at least eliminates one area of research.
I'll keep digging -- I'm probably missing something staring right at me. I'll let you know if I find something.
Based on what I have seen so far, there are a few candidates:
a) ZM's authentication logic is resetting the authentication session after some time
b) PHP has a session timeout
c) CakePHP has a session timeout (used for APIs)
You have already eliminated c) -- no core.php
As far as b goes, you said this was never an issue with 1.25, so I doubt it
The probable candidate therefore is a), but I can't (Yet) find why this is happening. I don't see any session cookies that expire in a few minutes or hours. I also don't see any logic that is checking for timeout anywhere or re-computing hash based on time
Re: user logged in timeout?
Posted: Fri Jun 12, 2015 1:24 pm
by iconnor
I suspect php session timeout...
Re: user logged in timeout?
Posted: Fri Mar 05, 2021 4:08 pm
by sideband
This behavior is back.. Chrome on linux and chromebook with ZM on Ubuntu Server 20.04