How can I logout of a password protected category?
The password protected category plugin doesn’t have an option to log out. Instead, when a user enters the password to unlock the category, a cookie is set in their browser. The cookie will give them continued access to the protected category and its contents until it expires. Once the cookie expires, the user is ‘logged out’ of the category and has to re-enter their password to access it again.
There is an option to change the number of days before the cookie expires. For instructions, please click on the link below for the plugin you are using:
- WooCommerce Password Protected Categories plugin – ‘Password Expires After‘ setting
- Password Protected Categories plugin – ‘Password Expiry‘ setting
If you want to logout your users as quickly as possible, set this to the minimum number of days.