I'm sorry if this isn't the right section of the forum to publish this topic.
I'd like to create a page just to reset cookie.
I tried to create a page: unset.php, I put the page inside the wp-content\themes\mytheme\, with this code:
<?php setcookie("wp-postpass_", "", time()-3600); unset($_COOKIE["wp-postpass_"]); ?>
Then, I would like to call this way:
<form method="post" action="unset.php"> <input type="submit" value="logout"/> <form>
But it's not working. Any ideias? Thanks!