I know how it feel, like no one know the solution. You like to pay everything you have, to find out why you can not login into your wordpress from wp-admin. And if you do it will redirect to same page without showing any message. but same time you can login into your wordpress from wp-login.php. Sometime clearing the browser’s cookies might let us login again but to be honest it’s a pain, and clearing your cookies isn’t a permanent fix and do not work everyone.
Answer is easy when you know the following two solutions.
Solution1: At Wordpress admin–> Settings–> General Settings:
“WordPress address (URL)” should be same as “Blog address (URL)” You will love this simple tip if you are using Wishlist member wordpress plugin. because no one know this except you and me!
Solution2: Fixing issue with cookies.
problem is that occasionally on our various WordPress sites the wp-admin.php URL login stops working and we can only login through wp-login.php.
What we need to do is to force WordPress to follow the correct cookie path. This can be done by adding a small line of code to the wp-config.php file located in your WordPress installation root directory.
Open up wp-config.php in your web editor and add this:
/** wp-admin login fix */
@define('ADMIN_COOKIE_PATH', '/');
If you’re unsure, it can go just before the ?> at the end of the php code like so:
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
/** wp-admin login fix */
@define('ADMIN_COOKIE_PATH', '/');
?>
Update: Some reported WP Security Scan case this issue. Please test and confirm in comments if you are using WP Security Scan wordpress plugin.




kumar
July 23, 2010
3:40 pm
Great, it worked for me thanks for the share