• Resolved Jeff Sherk

    (@jsherk)


    I have set the Terminate a session when idle for 15 minutes, but it does not appear to work.

    I login and load a page in Chrome browser and then just leave that page alone. The logged in user is assigned to a specific role that should terminate the session (see settings below).

    Under Tools > Sessions (from a different browser logged in as admin) I can see the users Idle Exp time counting down from 15 minutes (“In X min, Y sec”). Once it gets down to 0 it says how long ago it passed (“X min, Y sec ago). Now if I go back to the first browser with the logged in user and refresh the page, it will simply reload the page and continue as if they were stil logged in. Under Tools > Sessions I can see that the Idle Exp time has returned to counting down again (“In X min, Y sec”).

    Settings are as follows:
    OPTIONS
    – Enabled-Cumulative Privileges
    – IP Detection CHECKED
    – IP follow up CHECKED
    – On password reset CHECKED
    – Analytics CHECKED

    SETTING BY ROLE (for the users specific role)
    – Allow from everywhere
    – Max 1 IP Address
    – Max 2 sessions per user
    – Block and send a WordPress error
    – Terminate a session when idle for more than 15 minutes
    – standard cookie 2 days
    – rememeber me cookie 2 weeks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jeff Sherk

    (@jsherk)

    UPDATE/QUESTION:

    Does wp-cron need to run in order to cause the session to be terminated?

    I can reproduce the issue over and over and then if I go to any page on the site from another browser, the session is suddenly terminated.

    I have cron set to run automatically, but only once per hour.

    Thanks

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Sessions kills sessions that need to be killed every 90 seconds (with or without cron). But it needs traffic on your site. If you have no traffic, the process will only be called at your cron frequency. Nevertheless, if you have no traffic, there’s no need to kill stale sessions…

    Thread Starter Jeff Sherk

    (@jsherk)

    Ok thank you… yes our site has low traffic but I have confirmed the session does terminate succesfully when either somebody visits page or cron runs.

    So there is no issue.

    Thanks

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Terminate a session when idle not working’ is closed to new replies.