• I login to CMS via wp-admin and then from dashboard I choose to visit the sites front end (with the admin bar along the top). From here I am not logged out as per the setting I set up in this plugin.

    It would appear that I need to be in the admin / dashboard environment for the plugin logout features to work.

    I downloaded this because it stated that it refers to the front end and back end. If an administrator navigates to the front end to review their work (a fairly natural thing to do as the last task before forgetting to logout) then they will not be logged out at all.

    Please can you will me know if I’m missing something? Thanks for your efforts with this, its a great solution.

    Thanks in advance,

    Nick

    https://wordpress.org/plugins/idle-user-logout/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Abiral Neupane

    (@abiralneupane)

    Hi nickm2013,

    Thanks for using this plugin.

    Normally, this plugin traces the inactivity all over the site ( No matter where your are – admin end or front end).

    There might some conflict, or problem with the settings. For conflict confirmation, can you look over the console (normally F12 would do the work), and paste the error here?

    Also check if the object similar to this one is shown in the source code (normally its Ctrl+U ):

    var iul = {“ajaxurl”:”http:\/\/abiralneupane.com.np\/wp\/wp-admin\/admin-ajax.php”,”actions”:{“action_type”:”2″,”timer”:20,”disable_admin”:true},”is_mobile”:””};

    Also, paste the object shown in your site’s source code.

    Thanks

    Thread Starter nickm2013

    (@nickm2013)

    Thanks for your response.

    I found this in the console ?

    Uncaught TypeError: jQuery(…).idleTimer is not a function
    …… script.js?ver=2.0:22

    I also had this but I guess that’s unrelated:-
    Uncaught TypeError: jQuery(…).bxSlider is not a function
    …… bxslider.setup.js?ver=1.0.0:22

    I found that script also. This is how it appears in my code.
    <script type=’text/javascript’>
    /* <![CDATA[ */
    var iul = {“ajaxurl”:”http:\/\/mydomainname.com\/wp-admin\/admin-ajax.php”,”actions”:{“action_type”:”2″,”timer”:”20″,”action_value”:””},”is_mobile”:””};
    /* ]]> */
    </script>

    I substituted my real domain name for mydomainname in the above.

    Thanks

    Nick

    Plugin Author Abiral Neupane

    (@abiralneupane)

    I suspect there is plugin conflict.

    The error caused by bxSlider is stopping the library script needed for Idle User Logout from executing. If the problem from bxSlider gets resolved, the plugin might start working.

    In order to be sure of it, first deactivate idle user logout plugin and see if the error of bxSlider exists. If it still exists then there is high chance that bxSlider is conflicting with the plugin.

    Now for the final assurance, deactivate bxSlider plugin, and see if there is any error. If not, then bxSlider is causing the problem.

    Thanks

    Plugin Author Abiral Neupane

    (@abiralneupane)

    Hello Nick,

    Is the issue gone? If yes, please mark it as resolved.

    Also, If you applied any other solution, then please share it. This might help other folks using this plugin. 🙂

    Regards

    Thread Starter nickm2013

    (@nickm2013)

    Hi

    Sorry for the delay. No I still have this issue. Even with the bxSlider disabled I get an error from the console..

    Uncaught TypeError: jQuery(…).idleTimer is not a function

    And the idleTimer does not work when viewing the front end still.

    Thanks

    Nick

    Thread Starter nickm2013

    (@nickm2013)

    script.js seems to have an issue on line 22…

    if(!disable_admin){
    jQuery(document).idleTimer(timer);
    jQuery(document).bind(“idle.idleTimer”, function(){
    switch(parseInt(action)){
    case 2:
    idle_user_logout_callback(”,true);
    break;

    Nick

    If jQuery is not seeing it as a function, it’s possible jQuery isn’t being called until after the function loads – take a look in your theme where jQuery is being loaded. If it’s not calling jQuery until after the timeout script, that’s your most likely issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not logging out if viewing the front end’ is closed to new replies.