View file modules/user/exit.php

File size: 190B
<?php

if (is_user()) {
setcookie('username', '', time()-1, '/'); 
setcookie('password', '', time()-1, '/'); 
session_destroy(); 
header('Location: /');
}
else {
header('Location: /');
}
?>