Make sure the cookie settings you entered are correct. In phpmyadmin view the settings table entries 171-173 and change the cookie settings accordingly. If the login works but the cookie your setting does not log the person in then a cookie setting is wrong.
If this is
vb this usually works
cookie path /
cookie prefix bb
cookie domain .domain.com