OK – ben weer een stapje verder geraakt.
Tools > Internet Options > Settings > View Files
Heb ik de naam van de coockie’s gevonden.
Wie zoekt die vindt zeker?
Ik hou jullie op de hoogte.
Dag Veerle,
Ik vond dit antwoord online, volgens mij lost dit je probleem op:
Same issue here and I was able to locate and apply a “fix”,
Find your wp-pass.php file in the WordPress root install folder. Download and save a copy. Then edit it and look for the following line of code:
setcookie(‘wp-postpass_’ . COOKIEHASH, $_POST[‘post_password’], time() + 864000, COOKIEPATH);
Change the 10 day cookie timeout of “864000” (number of seconds) to something like “60”.
Upload and overwrite the existing wp-pass.php file (again make sure you have a backup of the original just in case).
Reset the passwords on your protected pages to clear any existing cookies and the new timeout should be in effect.
Groet,
Thijs
__________________
Nieuwe WordPress handleidingen voor WordPress 4.0! Bekijk ze allemaal
WordPress supersnel maken? Lees hier meer
Inderdaad met de juiste zoekwoorden ook gevonden op
https://wordpress.org/support/topic/password-protected-page-still-shows-even-after-cookie-expired?replies=2
die wp-pass.php vind ik niet.
Ik heb al op andere forums gekeken en daar hebben ze dit probleem ook soms.
Andere zijn dan geholpen door een zelfgeschreven plugin te gaan gebruiken.
https://wordpress.org/support/topic/cookies-on-password-protected-pages?replies=8
Dat lijkt mij niet zo save naar de toekomst toe.
Ik zal nog wat verder zoeken. Alle tips nog steeds welkom.
EUREKA !
Oplossing gevonden via
https://wordpress.org/support/topic/protected-pages-timeout?replies=8
Volgende code toevoegen aan je function.php
add_action( ‘wp’, ‘post_pw_sess_expire’ );
function post_pw_sess_expire() {
if ( isset( $_COOKIE[‘wp-postpass_’ . COOKIEHASH] ) )
// Setting a time of 0 in setcookie() forces the cookie to expire with the session
setcookie(‘wp-postpass_’ . COOKIEHASH, ”, 0, COOKIEPATH);
}
Thijs, bedankt voor je zoekwerk en tip
Graag gedaan, top dat het gelukt is!
Als je nog meer vragen hebt hoor ik het graag.
Groet,
Thijs
__________________
Nieuwe WordPress handleidingen voor WordPress 4.0! Bekijk ze allemaal
WordPress supersnel maken? Lees hier meer