Hallo zusammen,
ich habe eine für mich passende Lösung gefunden. Für eventuelle Mitleser:
Passwortschutz:
Auf Session-Cookies umgestellt, siehe
https://stackoverflow.com/questions/3363…h-cookie-timout
There's a much, much easier way to do this, using the post_password_expires filter. By default, the cookie expires 10 days from creation. To turn this into a session cookie, return 0. The following should be added to your theme's functions.php:
function custom_password_cookie_expiry( $expires ) {
return 0; // Make it a session cookie
}
add_filter( 'post_password_expires', 'custom_password_cookie_expiry' );
Gruß,
M'o