You can take a look at
this site for a comprehensive php based login system but without knowing more, it's hard to say. How are you using the login info & for what type of web site - have you looked at Content Management Systems (CMS) such as
Joomla or
Xoops that does user management for you.