I make a custom login form on my front blog page where me and my user author can key in username and password and it will log them in. When user click login, it will check for match from my wordpress database user table and if it match i setcookie and redirect them to wp-login.php. But it didnt work. The wp-login.php form will show up instead of go into admin panel. I use this code to setcookie–>
setcookie(‘wordpressuser_’ . COOKIEHASH, $username,time() + 31536000,$cookiepath);
setcookie(‘wordpresspass_’ . COOKIEHASH, $password,time() + 31536000,$cookiepath);
where $username and $password is what the people key in.
Can someone please help me!!