Make password invalid once logged out of password-protected page

After submitting the form and before redirecting to new page, reset the current user’s password.

A simple wp_update_user(array('ID' => $userid, 'user_pass' => 'YourNewPaSSword')); will do everything for you.

Leave a Comment