5

I have a MySQL database full of members of an organization with their passwords and other accompanying data. Is there a good PHP framework for a log-in system? I'd like something like what they do on yahoo, where you can browse the pages without logging in but you need to log in to access certain content.

Zachary Kniebel
  • 4,686
  • 3
  • 29
  • 53
Brian
  • 26,662
  • 52
  • 135
  • 170
  • Have a look at Zend_Auth and Zend_Acl for authentication and access control. Try to get something working with these. – Gordon Feb 23 '10 at 10:58
  • Duplicate: http://stackoverflow.com/questions/1975260/basic-authentication-and-session-management-library-for-php – Pekka Feb 23 '10 at 11:21

1 Answers1

3

Using a PHP framework is an excellent idea, however user authentication systems are not usually bundled with the frameworks themselves.

A PHP framework (like Symfony or CodeIgniter) can offer you some great features like: templating and layouts, automated validation, escaping of data to protect applications from attacks, cache management, smart URLs, e-mail and APIs, automated pagination, sorting, and filtering, plug-ins, ORM for databases, Internationalization etc etc.

Authentiaction is often seen as an extra and so is available as a plugin:

  • Symfony uses an optional system called sfGuard and is in the form of a plugin
  • CodeIgniter has several options for authentication detailed here. FreakAuth, Redux seem to be the market leaders here.
Community
  • 1
  • 1
Jon Winstanley
  • 23,010
  • 22
  • 73
  • 116