Thanks for your answer! I tried some plugins, but they didn´t change anything. I found this in wp-login.php due to your link:
*Filters the life span of the post password cookie.
* By default, the cookie expires 10 days from creation. To turn this
* into a session cookie, return 0.
*
* @since 3.7.0
*
* @param int $expires The expiry time, as passed to setcookie().
*/
$expire = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS );
Then I went to search for some modication and found this:
add_filter( 'password_reset_expiration', function( $expiration ) {
return 1; // A second
});
and that:
function custom_password_cookie_expiry( $expires ) {
return 0; // Make it a session cookie
}
add_filter( 'post_password_expires', 'custom_password_cookie_expiry' );
Could you tell me, which snippet should work, because at the moment, nothing changes if I close the browser and reopen it. I´m staying logged in …
Some help would be appreciated!