Web Browser Login Session Time

Have some questions or having issues with your DVR/NVR(s), Post them here for the mods and other users to assist you with.
jeremy.mathis
Posts: 9
Joined: Thu Feb 21, 2019 11:50 am

Web Browser Login Session Time

Post by jeremy.mathis »

Hello,
Is there a way to customize the login session time when using a web browser? I get really annoyed having the browser open and even when I am active in the window making changes and input and it pops up a message saying, "Authorize failed, Please login again!" because of a hard set session time limit. Am I missing something that I can edit on this? Thanks...

Image
ethan6757
Posts: 6
Joined: Mon Apr 01, 2019 3:15 am

Re: Web Browser Login Session Time

Post by ethan6757 »

check in the settings tab login session time, and set the duration of it, maybe the default setting is making authorization failed.
James.S

Re: Web Browser Login Session Time

Post by James.S »

jeremy.mathis wrote:Hello,
Is there a way to customize the login session time when using a web browser? I get really annoyed having the browser open and even when I am active in the window making changes and input and it pops up a message saying, "Authorize failed, Please login again!" because of a hard set session time limit. Am I missing something that I can edit on this? Thanks...

Image

In my search, I was unable to find this feature within the settings of a 1051 camera and a few others. I went ahead and reached out to our R&D team about this feature as we have it in our DVRs/DVRs.
outflyin
Posts: 6
Joined: Tue Aug 06, 2019 7:29 pm

Re: Web Browser Login Session Time

Post by outflyin »

James.S wrote: ↑Wed Apr 03, 2019 9:53 am
jeremy.mathis wrote:Hello,
Is there a way to customize the login session time when using a web browser? I get really annoyed having the browser open and even when I am active in the window making changes and input and it pops up a message saying, "Authorize failed, Please login again!" because of a hard set session time limit. Am I missing something that I can edit on this? Thanks...

Image

In my search, I was unable to find this feature within the settings of a 1051 camera and a few others. I went ahead and reached out to our R&D team about this feature as we have it in our DVRs/DVRs.

Have you found a solution to this yet?

It is very annoying to have to login again whenever I need to pan the camera.

Thanks.
User avatar
Revo2Maxx
Site Admin
Posts: 6820
Joined: Sat Jun 15, 2019 3:05 pm

Re: Web Browser Login Session Time

Post by Revo2Maxx »

Sadly if your using the 2019 FW the camera logs out every day for reasons unknown but is something that was added to the last FW and while the video and audio will play in stand by mode once you try and move the camera or go to setup it will make you log in again. While this might have been added for reasons we don't understand I am going to guess it was for sure security... Maybe that was one of the Leaks in the camera audio system and only way to fix the issue was to make it so the camera isn't online all the time. I don't know just a guess...
Be Safe.
jack7
Posts: 904
Joined: Tue May 29, 2018 7:46 pm

Re: Web Browser Login Session Time

Post by jack7 »

You could try Amcrest Surveillance Pro and Amcrest View Pro. They do not time out.
sharnish
Posts: 6
Joined: Tue May 26, 2026 12:38 pm

Re: Web Browser Login Session Time

Post by sharnish »

Browser timeout from the NVR Web Access plagued me for a long time but I found a solution.

It requires some explanation. Usually the browser times out if you're not clicking on it at least every 10 minutes or so.

The solution is to run a little script in your browser console that keeps the connection active.

tl;dr this is the script for those who can interpret such things:

setInterval(function(){
document.getElementById('tbtext-1036').click();
}, 30000);

alternatively

setInterval(function(){
document.querySelector('#tbtext-1036').click();
}, 30000);


30000 = number of milliseconds. You can change this if you want.


EXPLANATION

FIRST

Log in to the NVR with the browser using your name and password and go to Live View.

You need a "click" in the browser but a click that doesn't do anything. So you need to find a non-clickable element.

I chose the date/time string in the upper right corner.

You need the ID of this element for the script. To get it, right-click on the date/time and choose "Inspect" or "Inspect element" (should work in most browsers). The "Developer Options" window will open and the code for this element will be highlighted there. In Chrome and Opera you might have to do it twice so it goes to the right place.

Mine looks like this: <div id=tbtext-1036 ... etc.

But any non-clickable element should do.

In Firefox the ID is the first parameter of the "<div" element. In Chrome and Opera it is there but is positioned later in the list.

Your little script (see below) will make a click on this element, which will do nothing, but the click will keep the browser connection active.

SECOND

In the top menu of the Developer Options window select "Console". This opens a way to communicate with the browser. A bunch of gibberish will come up, but at the bottom there will be a little blank space.

Paste the code into there, hit Return, then close the window by clicking the "X" in the upper right.

You may get a security warning about pasting code that will ask you to type "allow pasting." Do that, then paste the code.

You will have to go through this every time you access the NVR in the browser. But for me it lasts all day long with no interruptions. If you refresh the browser you will have to paste the code again because the refresh clears the console.

CODE

Interpretation of the JavaScript code:

"setInterval(function)" means the function will run every specified number of milliseconds.

30,000 milliseconds is 30 seconds, so that's how often the element will be clicked.

"document.getElementById('tbtext-1036').click()"

This is pretty self-explanatory if you understand the above. We are looking for an element with the ID of "tbtext-1036". The script locates the element on the web page by its ID number and clicks it.

"document.querySelector('#tbtext-1036').click()"

A slightly different syntax but doing the same thing. The hash sign "#" is a shortcut for element ID.

Please let me know if it doesn't work for you and we can try to figure it out.
FGEldridge
Posts: 2
Joined: Sat Aug 08, 2026 8:17 am

Re: Web Browser Login Session Time

Post by FGEldridge »

I am using the latest version of the Chrome browser.
The element that I have chosen to use to keep the browser active is identified in the Elements section of the Inspection window as:
<div id="main_logo" class="main-logo"></div>
I don't see anything that looks like the equivalent to "tbtext-1036". Is there some other way to identify the chosen element in the document.getElementById('tbtext-1036')
Thanks,
Fred
sharnish
Posts: 6
Joined: Tue May 26, 2026 12:38 pm

Re: Web Browser Login Session Time

Post by sharnish »

Hi Fred - If I understand you correctly the equivalent to "tbtxt-1036" would be "main_logo" in your example, using the ID of the element, whichever you chose. You just have to make sure the element doesn't do anything when you click it, so don't chose a button. You can't really click on a class but you can click on an id. I'm not a javascript programmer, I just modified something I found with a google search.

So in theory you would do this: document.getElementById('main_logo')
single vs double quotes shouldn't matter

But where are you finding "main_logo"? Does anything happen when you click it? In Chrome (and in Firefox) with the browser logged into my NVR and using the text search function control-F in the Elements panel of Developers Tools, I can't locate an element main_logo. Maybe you have a different model of the NVR than I do. In that case, the date-time string in my example may have a different ID name or may not appear at all.

For ease of use I have the script in a clipboard. So whenever I open the page it's just a matter of:
1. Control-C to copy the script
2. F12 to open the console
3. Control-V to paste, then hit Return (don't forget this)
4. F12 to close the console, all very quick. And it lasts for me all day.

By the way, using Chrome for my NVR the time-date string appears differently than it does in Firefox: You can see that id="tbtext-1036" (toolbar text) is buried deeper among the attributes as follows, the ID appearing after the classes:

Chrome:

<div class="x-toolbar-text tbText x-box-item x-toolbar-item x-toolbar-text-default cuttitle" id="tbtext-1036" title="" style="right: auto; left: 1011px; top: 11px; margin: 0px;">2026-08-08 13:31:48 Sat</div>

Let me know if this doesn't work please Fred.
FGEldridge
Posts: 2
Joined: Sat Aug 08, 2026 8:17 am

Re: Web Browser Login Session Time

Post by FGEldridge »

I am not a JavaScript programmer either. Is this a case of the blind leading the blind? I was a programmer, but I retired in 2006 which means that I worked with Fortran, Pascal, Basic, C++, and other dead languages. The element that I am trying to use appears in the upper left corner of the web page, It does not respond to any clicks. It looks like this:
Screenshot 2026-08-09 124905.jpg
Screenshot 2026-08-09 124905.jpg (9.77 KiB) Viewed 257 times
It and it is identified in the elements section of the JavaScript as:

<div class=”main-head”>
<div id=”main_logo” class=”main-logo”></div>
</div>

When I tried your suggestion above it did not work. Maybe I did not implement it correctly. Could you show me how you would use the information that I have provided to implement the script snippet and where it needs to be placed in the JavaScript?
Thanks so much for your help on this matter. I would be happy to provide any further information that you might need from me.
Post Reply