Ok Donncha,
yes I think everything is correct regarding COOKIEPATH on the wp_setcookie() function
define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
the problem is whenever i logout from this exemple http://img386.imageshack.us/my.php?image=logoutfw4.jpg
You can see I logout, but my cookie are still filled. They should be empty due to the call of wp_clearcookie()'s function.
I force the logout to work with "action=force_logout" =>
case 'logout':
wp_clearcookie();
do_action('wp_logout');
nocache_headers();
$redirect_to = 'wp-login.php?action=force_logout';
if ( isset($_REQUEST['redirect_to']) )
$redirect_to = $_REQUEST['redirect_to'];
wp_redirect($redirect_to);
exit();
break;
and
if( $_POST ) {
$user_login = $_POST['log'];
$user_login = sanitize_user( $user_login );
$user_pass = $_POST['pwd'];
$rememberme = $_POST['rememberme'];
// } else {
} elseif ($action <> 'force_logout') {
$cookie_login = wp_get_cookie_login();
if ( ! empty($cookie_login) ) {
$using_cookie = true;
$user_login = $cookie_login['login'];
$user_pass = $cookie_login['password'];
}
}
I just added } elseif ($action <> 'force_logout') {
but in fact It still doesn't clear the cookie.
Well let it like that for the moment, cause I'm still working on my localhost and vhost, maybe it's a problem, But I often use cookie management, and that's the first time ever I get trouble on cookie path.