Hey guys; I'm just wondering how website like Facebook, Google, or even Cemetech have accounts where you have to log in (username and password). You don't have to explain the whole process if you don't want to. Maybe point me to a link to read up on?
I found something called "accountify" on Google, but wanted to see if there were other ways.
Thanks Smile
Basically, you have a table (database, db) that lists the username, account number, and their password. Ideally, you want to hash the password in some form (i.e. md5). When a user logs in, the submitted password is hashed and compared to the hashed password. If they match, a session is created.

I don't know of any good resources to link to. I also have zero experience in setting up such systems. So, expect discrepancies in my post and the actual process. But, the idea should more or less be the same.
As comic says, the simplest form of user authentication is storing usernames, passwords, and some other information in a database. You can then use PHP sessions and/or cookies to track logged-in users from the server and client side, and to manage logging out. You can do more complex things, such as storing extra information about each user in the database, and you should store hashes of passwords rather than the actual password for each user. Can you be any more specific about how much you're willing to do and/or learn to get such a system in place, or if you would prefer not to build your own implementation?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement