user logged in timeout?

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

user logged in timeout?

Post by bencollinz » Mon Jun 01, 2015 5:59 pm

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 » Sun Jun 07, 2015 6:11 pm

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 » Mon Jun 08, 2015 2:16 pm

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 » Thu Jun 11, 2015 9:43 pm

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: 1468
Joined: Sun Mar 01, 2015 12:12 pm

Re: user logged in timeout?

Post by asker » Thu Jun 11, 2015 11:10 pm

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
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: user logged in timeout?

Post by bencollinz » Fri Jun 12, 2015 1:44 am

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: 1468
Joined: Sun Mar 01, 2015 12:12 pm

Re: user logged in timeout?

Post by asker » Fri Jun 12, 2015 12:17 pm

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
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

User avatar
iconnor
Posts: 1494
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: user logged in timeout?

Post by iconnor » Fri Jun 12, 2015 1:24 pm

I suspect php session timeout...

sideband
Posts: 15
Joined: Sat Oct 24, 2020 2:19 pm

Re: user logged in timeout?

Post by sideband » Fri Mar 05, 2021 4:08 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests