Title: Session lifetime
Last modified: August 31, 2016

---

# Session lifetime

 *  Resolved [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [10 years ago](https://wordpress.org/support/topic/session-lifetime/)
 * Hi,
 * does anybody know, where I can set the session lifetime for logged in user via
   ldap at wpdirauth. I think, it´s related to any php setting but didn´t find it
   out til now.
 * Has anyone a hint?
 * Regards,
 * [https://wordpress.org/plugins/wpdirauth/](https://wordpress.org/plugins/wpdirauth/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * (@gilzow)
 * [10 years ago](https://wordpress.org/support/topic/session-lifetime/#post-7340071)
 * 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](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [10 years ago](https://wordpress.org/support/topic/session-lifetime/#post-7340075)
 * Thanks, can you please name the line and path, where you´ve hard coded the value?
 *  Plugin Author [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * (@gilzow)
 * [10 years ago](https://wordpress.org/support/topic/session-lifetime/#post-7340076)
 * line 1415
    `$duration = ($loginUserIsDirUser) ? strtotime('1 hour') : strtotime('
   6 months');`
 *  Thread Starter [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [10 years ago](https://wordpress.org/support/topic/session-lifetime/#post-7340079)
 * I thought it would be $intExpireTime = 60* at line 2125?
 *  Plugin Author [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * (@gilzow)
 * [10 years ago](https://wordpress.org/support/topic/session-lifetime/#post-7340084)
 * 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](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/session-lifetime/#post-8994873)
 * 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.

 * ![](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/)

 * 6 replies
 * 2 participants
 * Last reply from: [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/session-lifetime/#post-8994873)
 * Status: resolved