function mind_set_cookie_expire( $time ) {

return time() + 86400;  // 1 day

}

add_filter( 'post_password_expires', 'mind_set_cookie_expire' );