WordPress.org

Ready to get started?Download WordPress

Forums

How to Hack Core Files Properly (2 posts)

  1. Mike V
    Member
    Posted 1 year ago #

    Hi

    I need to change the time-out cookie for protected post login from the default of 10 days to one hour.

    The code is in the main part of wp-login.php...

    setcookie( 'wp-postpass_' . COOKIEHASH, $wp_hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() + 3600, COOKIEPATH );

    As you can see, I've changed it already but by editing the core file.

    How do I implement this change properly?

    Thanks

    Mike V.

  2. Jonathan Dingman
    Member
    Posted 1 year ago #

    Here's a plugin for it:

    http://wordpress.org/extend/plugins/remember-me-controls/

    Let me know if that doesn't work for you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.