[PHP] secure login

My users database table has two fields: username and encrypted password. When I code my login page, I will store the user’s username and encrypted password in a cookie if they can provide an existing username and matching password.

Is this safe? Even if some hacker views the cookie and determines the encrypted password, he cannot use it in any way, because my login page requires the normal password.