Title: Logout timeout changeable
Last modified: September 2, 2016

---

# Logout timeout changeable

 *  Resolved [Andreas Böttger](https://wordpress.org/support/users/rztab/)
 * (@rztab)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/logout-timeout-changeable/)
 * We desperately need a way to customize the LDAP logout time. Currently, the value
   is hard coded in the code.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * (@gilzow)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/logout-timeout-changeable/#post-8256133)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wpdirauth.svg)
 * [wpDirAuth](https://wordpress.org/plugins/wpdirauth/)
 * [Support Threads](https://wordpress.org/support/plugin/wpdirauth/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdirauth/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdirauth/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdirauth/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/logout-timeout-changeable/#post-8256133)
 * Status: resolved