Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Paul Gilzow

    (@gilzow)

    currently it’s hard-coded at one hour. However, I need to rewrite the cookie piece as the pluggable functions are being deprecated in favor of filters. At that point, I’ll either make it an option you can set in the settings panel, or I’ll have the function apply the auth_cookie_expiration filter.

    Thread Starter benhartwich

    (@yoursql719)

    Thanks, can you please name the line and path, where you′ve hard coded the value?

    Plugin Author Paul Gilzow

    (@gilzow)

    line 1415
    $duration = ($loginUserIsDirUser) ? strtotime('1 hour') : strtotime('6 months');

    Thread Starter benhartwich

    (@yoursql719)

    I thought it would be $intExpireTime = 60* at line 2125?

    Plugin Author Paul Gilzow

    (@gilzow)

    wait, you’re right. it’s too early and i havent had enough coffee yet.

    yes, i switched to those filters awhile back. so then you could actually hook the auth_cookie_expiration filter with a later execution (wpDirAuth uses the default of 10) and set the timeout to whatever you want.

    Thread Starter benhartwich

    (@yoursql719)

    Hi,

    any news to this feature?

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Session lifetime’ is closed to new replies.