Tag Info

New answers tagged

0

Was simpler than I thought, but surprisingly little information about this. A client can request a protected page by specifying the cookie with a cookie query parameter: http://{wordpress-installation}/user?cookie={cookie}


0

Look carefully at your .htaccess and apache configuration, Your server is intercepting the request. Unless I'm mistaken, I really don't think this is a WP problem. You might try ServerFault.com and/or your host provider for this one. You also might want to think about how subdomain are mapped to your site. Chances are, if I understand it correctly, you ...


1

Try using the filter hook: function user1462_login_redirect( $redirect_to, $request, $user ) { global $user; if ( isset( $user->roles ) && is_array( $user->roles ) ) { if ( in_array( 'administrator', $user->roles ) ) { return $redirect_to . '?message=hiadmin'; } else { return home_url(); ...


0

This works well for me: clean_user_cache($user->ID); wp_clear_auth_cookie(); wp_set_current_user($user->ID); wp_set_auth_cookie($user->ID, true, false); update_user_caches($user);


0

You need to run this code before any headers are sent to the client. Try segregating the login code. This question is almost a year old, so please let us know what, if anything worked.



Top 50 recent answers are included