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

    (@gilzow)

    apologies. wordpress used to notify me when someone posted in the support forums, but for some reason it isn’t any more.

    Customizing the logout time is still on my to-do list. Luckily, there’s an easy solution you can implement to do exactly what you need right now. wpDirAuth uses the auth_cookie_expiration filter to set the cookie expiration time. What you can do is hook the same filter with a later execution (wpDirAuth uses the default of 10) and set the timeout to whatever you want. In your functions file, you could do something like

    
    add_filter('auth_cookie_expiration',function($intExpireTime,$intUserID){
        if(1 == get_user_meta($intUserID,'wpDirAuthFlag',true)){
            $intExpireTime = <some-amount-of-time-you-choose>; //just remember it needs to be in seconds
        }
        return $intExpireTime
    },100,3);
Viewing 1 replies (of 1 total)

The topic ‘Logout timeout changeable’ is closed to new replies.