Forums / Addon Admin Tools / Admin Keepalive Timer [Support Thread]

Admin Keepalive Timer [Support Thread]

Views: 19,493

Results 1 to 20 of 79
11 Oct 2012, 8:31 PM
#1
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Admin Keepalive Timer [Support Thread]

Since v1.5.0 was released with stronger security against unattended admin logins, some people have found it frustrating if they've been taking a long time composing content and didn't know that their inactivity had logged them out, or while talking on the phone but not touching their computer.

This plugin aims to counter that problem by** popping up a notification window if there is no activity in the admin screen for an extended period of time, and logs out only if the prompt is not acknowledged, else keeps them logged in as long as they keep working.**

INSTALLATION IS SIMPLE:

  1. Unzip and upload the files.
  2. Make a small addition to the bottom of the existing /your_admin/includes/header.php file to enable the keepalive system.

DOWNLOAD HERE:
http://www.zen-cart.com/downloads.php?do=file&id=1526

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Oct 2012, 8:33 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin Keepalive Timer [Support Thread]

NOTE: I won't be surprised if there are some small display quirks in Chrome, and maybe IE (doesn't everything break in IE?).

Feedback welcome.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Oct 2012, 10:13 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Admin Keepalive Timer [Support Thread]

Great idea. Works as advertised on my 1.5.1 test site.

12 Oct 2012, 12:14 PM
#4
dix30simulation avatar

dix30simulation

New Zenner

Join Date:
Aug 2012
Location:
Montreal, Canada
Posts:
30
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Errr...thanks but see no option on v1.50
Where is the fonction appearing in the admin panel?

12 Oct 2012, 2:09 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Admin Keepalive Timer [Support Thread]

There's no admin switch to turn it on or off, if that's what you're looking for. As the instructions say, To activate it, simply add the following line to the end of your existing /RENAMED_ADMIN/includes/header.php file: <?php require(DIR_WS_INCLUDES . 'keepalive_module.php'); ?>

13 Oct 2012, 8:31 AM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Admin Keepalive Timer [Support Thread]

In the constants, do the empty spans do anything?

<p class="ui-state-error-text"><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 50px 0;"></span>...

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 Oct 2012, 3:01 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin Keepalive Timer [Support Thread]

torvista:

do the empty spans do anything?
Yes. They're part of the jQuery UI constructs

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Oct 2012, 2:50 PM
#8
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Afternoon!

I have been waiting for something like this..... too many times Have I been logged out halfway through a long page write up :o/

I am not sure if it is functioning correctly. When the 15 mins is almost up the entire screen goes green, you can not click anything or carry on working and there is no pop up message. The header also changes to a count down timer.

The only way out is to press F5 to refresh the screen, which means I lose everything I was writing.

I dont think this is how it is intened to work. I am using zc1.5.1 and ie9.

Any ideas?

Thanks in advance

We Fix Information Technology - we're making I.T. simple!
https://www.wefixitonline.co.uk

17 Oct 2012, 4:53 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin Keepalive Timer [Support Thread]

The countdown dialog box (during green overlay) might be displaying at the top of the page ... so scroll up to access it. Instead of pressing F5.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Oct 2012, 11:47 AM
#10
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

DrByte:

The countdown dialog box (during green overlay) might be displaying at the top of the page ... so scroll up to access it. Instead of pressing F5.

thanks for the reply.... All i get is the green overlay, there is no dialog box displayed. :o/

I have scrolled up, down and side to side (lol). Could I have installed something wrong?

I have tried accessing the admin in ie8 aswll but I get the same result.

Thanks once again for your help ;o)

We Fix Information Technology - we're making I.T. simple!
https://www.wefixitonline.co.uk

18 Oct 2012, 5:24 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin Keepalive Timer [Support Thread]

I've never personally tested it on any IE browsers. I thought IE was dead?

Do you get the same symptoms on a more reliable browser?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Oct 2012, 7:49 PM
#12
dh010010 avatar

dh010010

New Zenner

Join Date:
Aug 2012
Posts:
23
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

DrByte:

I've never personally tested it on any IE browsers. I thought IE was dead?

Do you get the same symptoms on a more reliable browser?

IE dead? ..... never lol

I got the same result on others too, however today it just started working.

Funny five mins me thinks. Thanks for you help DrByte, great addon!

We Fix Information Technology - we're making I.T. simple!
https://www.wefixitonline.co.uk

14 Dec 2012, 7:00 PM
#13
canvas101 avatar

canvas101

New Zenner

Join Date:
Apr 2007
Posts:
41
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Dr Byte

Great bit of kit....

Been using it for a few days now, today I noticed with this module installed if I go to edit a page of the website it doesnt allow me to in the WYCIWYG mode using the TinyMCE editor it just displays the page in HTML plain text format.....strange this one

I've removed the module and it started working again the TinyMCE is displaying the page content.

Anyone else got this happening to them at all?

14 Dec 2012, 7:10 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Keepalive Timer [Support Thread]

I am using CKEditor without any trouble with Keep Alive ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Dec 2012, 10:11 PM
#15
canvas101 avatar

canvas101

New Zenner

Join Date:
Apr 2007
Posts:
41
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Ok Ive been doing some more digging around and here is where I am with this......

The TinyMCE editor stops working the minute I place the;

<?php require(DIR_WS_INCLUDES . 'keepalive_module.php'); ?>

In the my header.php file.......

Any ideas people.....Module works a treat but the minute I complete the above last step I lose my TINY MCE editor

I'm sure its go to me something small

14 Dec 2012, 11:36 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin Keepalive Timer [Support Thread]

Guessing that your editor plugin is trying to reload jquery but it's already loaded by the keepalive script.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Dec 2012, 11:55 PM
#17
canvas101 avatar

canvas101

New Zenner

Join Date:
Apr 2007
Posts:
41
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

DrByte:

Guessing that your editor plugin is trying to reload jquery but it's already loaded by the keepalive script.

Any idea how I can fix this?

27 Jan 2013, 1:54 AM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin Keepalive Timer [Support Thread]

Apologies for the delay in replying. I've submitted a new version which "plays better with others", such as TinyMCE which also loads jQuery on the page. This update will skip reloading jquery if it's already loaded.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Jan 2013, 2:45 AM
#19
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

FYI: using Zen Cart 1.5.1

I work with Firefox for admin purposes only.

It works perfectly in Firefox (18.0.1). I only wish it would warn you of the session ending with a popup window. If you are using many tabs in your browser or have many browser windows open, and the admin window is not active, you will miss the warning.

As for IE9.0.12, it warns you with the green screen appearing below the footer section of the admin window. ( picture attached). After 15 minutes, It warns you "Sorry, you have logged out due to inactivity". Once you click continue, you can go back in and continue working in admin, or in another-words the admin session remains active!
Attachment 11838

In Chrome, nothing happens the warning doesn't even appear.

I have not tried Opera yet.

Using Zen Cart 1.5.1

31 Jan 2013, 9:05 PM
#20
zetailer avatar

zetailer

New Zenner

Join Date:
Jun 2012
Posts:
2
Plugin Contributions:
0

Re: Admin Keepalive Timer [Support Thread]

Works great in all pages except the pages that has spiffyCalendar. The timer dialog or the timeout dialog does not, instead the input box of the calendar and the blue dropdown button shows in the left top corner without any header display. This is happening on all the following browsers, Chrome, Firefox, Safari and IE.

Appreciate if you can provide a fix.

We are using Zen 1.5.1 and Keepalive Timer-beta0.2.