Page 1 of 2 12 LastLast
Results 1 to 10 of 79

Hybrid View

  1. #1
    Join Date
    Aug 2012
    Posts
    23
    Plugin Contributions
    0

    Default Re: Admin Keepalive Timer [Support Thread]

    Is there any way to adapt this to work for the main site? I am looking to display the same idle warning to logged in customers. I have tried and failed..... any help would be great :o)

    Running zc 1.5.3
    We Fix Information Technology - we're making I.T. simple!
    www.wefixitonline.co.uk

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Admin Keepalive Timer [Support Thread]

    Quote Originally Posted by alhakeem2001 View Post
    Guys, I'm having a blank page after the time-out on the admin panel, the log file is pointing to this line in the admin/keepalive.php on line 12
    Which is: header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    and the whole log's info is:

    PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/public_html/newadmin/includes/keepalive_module.php:34) in /home1/public_html/newadmin/keepalive.php on line 12


    Is that happening because I changed the time format from the US ( M,D,Y) to GB ( D,M,Y)? and how to fix the problem with the blank page ?
    Quote Originally Posted by DrByte View Post
    Can't seem to replicate this on my own site.

    What's different in your admin files compared to a fresh brand new uncustomized install of ZC?
    The issue is with the November 2013 (v1.0) update, where an initialization script was added to load the keepalive_module.php. Since that module outputs a <div>, that's where the error originates. Using the previous (beta0.3) version corrects the issue (albeit with a single-line modification to the admin's /includes/header.php).

    Just remember, don't use this plugin for Zen Cart v1.5.2 and later ... it's already included!

  3. #3
    Join Date
    Oct 2014
    Location
    Canada
    Posts
    1
    Plugin Contributions
    0

    Default Re: Admin Keepalive Timer [Support Thread]

    Quote Originally Posted by lat9 View Post
    Just remember, don't use this plugin for Zen Cart v1.5.2 and later ... it's already included!
    I installed 1.5.3 from scratch and still lose my work without warning when I am editing a page as follows
    1. Tools
    2. Define Pages Editor
    3. Wait 15 minutes or more
    4. Save
    5. ... I am asked to log in again and my changes are gone.


    Am I going about things in the wring way?

    Thanks in advance.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Admin Keepalive Timer [Support Thread]

    Quote Originally Posted by lat9 View Post
    Just remember, don't use this plugin for Zen Cart v1.5.2 and later ... it's already included!
    My bad, for parroting the statement made by the last module updater instead of verifying before "speaking" -- you'll need to install this plugin (the previous version uploaded by DrByte) for this function to be present in all current Zen Cart installations.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Admin Keepalive Timer [Support Thread]

    Trying to look into this, but a thread was begun identifying issues with this module (using latest) for an admin user that is not given superuser permissions while logged in to a ZC 1.5.4 site. Thread: https://www.zen-cart.com/showthread.php?t=217827

    Admin Logs have repeated "attempted access to unauthorized page [keepalive] for legitimate admin user.
    This admin user is not a 'superuser', ie: has restricted permissions.
    SuperUser admin does not cause similar log entries.

    Code:
    notice
    2015-07-21 06:29:06
    199.xx.xx.xx
    2 DailyAdminUser (not SuperUser)    
    keepalive.php    
    r=0.8515617775265127    
    1        
    Attempted access to unauthorized page [keepalive]. Redirected to DENIED page instead.    
    Array
    (
    )
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Aug 2011
    Posts
    104
    Plugin Contributions
    0

    Default Re: Admin Keepalive Timer [Support Thread]

    I am getting the "We are unable to connect to the server. Your work may be lost....." alert. It's super annoying, so I disabled the "alert('<?php echo TEXT_KEEPALIVE_SERVER_UNREACHABLE_MESSAGE1;?>');" code to no ill effects.

    I have noticed, though, that even when I click the "Yes, Keep Working" button, the header on the site continues to countdown, until it says "!!Expired Session" But It's not actually expired. Just the page's header says that. And the countdown isn't even consistent after clicking keep working, then navigate to another tab. It will hang out at like 181 2-3 seconds, 180 for even longer, sometimes flash the pages actual title, then continue counting down at normal speed once the tab is in focus. Once it says expired session, the next time the modal box pops up, it doesn't give the countdown, it says that the session expired and to login.

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Admin Keepalive Timer [Support Thread]

    Quote Originally Posted by apogeerockets View Post
    I am getting the "We are unable to connect to the server. Your work may be lost....." alert. It's super annoying, so I disabled the "alert('<?php echo TEXT_KEEPALIVE_SERVER_UNREACHABLE_MESSAGE1;?>');" code to no ill effects.

    I have noticed, though, that even when I click the "Yes, Keep Working" button, the header on the site continues to countdown, until it says "!!Expired Session" But It's not actually expired. Just the page's header says that. And the countdown isn't even consistent after clicking keep working, then navigate to another tab. It will hang out at like 181 2-3 seconds, 180 for even longer, sometimes flash the pages actual title, then continue counting down at normal speed once the tab is in focus. Once it says expired session, the next time the modal box pops up, it doesn't give the countdown, it says that the session expired and to login.
    Yes, this has been an issue for yonks and was first mentioned in this thread in Sept 2013.

    I have several ZC 1.5.4 installs on my local dev server (PHP 5.5.9, Apache 2.4 etc, Ubuntu OS, etc) and it happens only on one site, the others are not giving me the error. I did core file comparisons left, right and center but can't pin-point the cause of this annoying error. All the core files in admin are the same in all sites.

    Now I am thinking that there may be a clash with some other jscripts (from installed mods) which could produce that message..... so my next move will be to (temporarily) kick out all other non-core scripts from the admin/includes/javascript folder, test without them and add them back one by one. Tedious, but it may throw a light on this .... eventually.

  8. #8
    Join Date
    Mar 2016
    Location
    Laval, Quebec, Canada
    Posts
    3
    Plugin Contributions
    0

    Default Re: Admin Keepalive Timer [Support Thread]

    Quote Originally Posted by frank18 View Post
    Yes, this has been an issue for yonks and was first mentioned in this thread in Sept 2013.

    I have several ZC 1.5.4 installs on my local dev server (PHP 5.5.9, Apache 2.4 etc, Ubuntu OS, etc) and it happens only on one site, the others are not giving me the error. I did core file comparisons left, right and center but can't pin-point the cause of this annoying error. All the core files in admin are the same in all sites.

    Now I am thinking that there may be a clash with some other jscripts (from installed mods) which could produce that message..... so my next move will be to (temporarily) kick out all other non-core scripts from the admin/includes/javascript folder, test without them and add them back one by one. Tedious, but it may throw a light on this .... eventually.
    I'm getting to this discussion a few months later but I hope it's useful to others.

    I've just implemented the Keepalive Timer module in the admin area and I had the same problem where the keepalive.php page was being called through ajax and kept falling 5 times until the TEXT_KEEPALIVE_SERVER_UNREACHABLE_MESSAGE1 pop-up.

    I found it has to do with the $.ajax timeout value set to 450ms on line 170 in the /admin_area/includes/javascript/jquery.idletimeout.js file.

    Increasing that value to 3000 (3 seconds) solves it for me.

    @DrByte I'm wondering if calling the keepalive.php every minute during 10 minutes isn't defeating the purpose of having a 15 minutes session? Every time the keepalive.php script is being called, I see the expiration time on the session increase.

    If "idleAfter" is set to 600 seconds (10 minutes) before actually being defined as idle, it means the actual session still has 15 minutes to go. So, one can leave its computer idle for 10 minutes and still have an active session expiring in 15 minutes for a total of 25 minutes?

    I may need to tweak it a little, the company I work for are pretty serious about PCI. Thanks for the module!

  9. #9
    Join Date
    Jun 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Admin Keepalive Timer [Support Thread]

    I know this sounds like a dumb question, but wouldn't it be much simpler to allow the "Admin Session Time Out in Seconds" be set to infinite?

    The Admin Keep Alive timer only tells you ever so often that you are going to be timed out, and if you don't respond soon enough you will get logged out.

    I like to have the "who's online" page up just to pop in now and then to see if there's anyone there.

    Kjell Aa

  10. #10
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Admin Keepalive Timer [Support Thread]

    Quote Originally Posted by Kjell Aa View Post
    I know this sounds like a dumb question, but wouldn't it be much simpler to allow the "Admin Session Time Out in Seconds" be set to infinite?
    You loose your PCI compliance.....

    Quote Originally Posted by Kjell Aa View Post
    The Admin Keep Alive timer only tells you ever so often that you are going to be timed out, and if you don't respond soon enough you will get logged out.

    I like to have the "who's online" page up just to pop in now and then to see if there's anyone there.

    Kjell Aa
    If you want that to happen then you only need to set "Updating Manually" (top right hand box) from the default "OFF" to 1 Min.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Will Admin Keepalive Timer work with v154?
    By SilverHD in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 2 Jun 2015, 03:19 PM
  2. v151 question about installing Admin Keepalive Timer Addon
    By SilverHD in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 30 Nov 2014, 11:08 PM
  3. Keepalive Timer and Orders Exporter conflict
    By gjh42 in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 1 Aug 2014, 02:15 PM
  4. Admin Keepalive timer
    By alhakeem2001 in forum Customization from the Admin
    Replies: 5
    Last Post: 22 Dec 2013, 05:12 PM
  5. v151 Blue Admin [Support Thread]
    By vvomble in forum Addon Templates
    Replies: 11
    Last Post: 27 May 2013, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg