I'd like to know if Database is the only way we could have a storage for username/password when we create a website. If yes, then how are we to implement it with javascript codes for database?

11-27-2010, 02:14 AM

travishein

usually some database is used, such as relational or LDAP kind.

in your login page, a piece of javascript might submit a request to a server-side login processor, where the message contains the form field data for the username and password, where the server side component then consults the database to determine if the credentials represent a valid user.