user logged in timeout?

Forum for questions and support relating to the 1.28.x releases only.
Locked
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

user logged in timeout?

Post 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
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: user logged in timeout?

Post by bencollinz »

I tried with admin account as well, no difference.
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: user logged in timeout?

Post by bencollinz »

I disabled user authentication and same result.
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: user logged in timeout?

Post 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.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: user logged in timeout?

Post 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
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: user logged in timeout?

Post 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)
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: user logged in timeout?

Post 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
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: user logged in timeout?

Post by iconnor »

I suspect php session timeout...
sideband
Posts: 27
Joined: Sat Oct 24, 2020 2:19 pm

Re: user logged in timeout?

Post by sideband »

This behavior is back.. Chrome on linux and chromebook with ZM on Ubuntu Server 20.04
Locked