tags:

views:

536

answers:

4

Are there any good tutorials on how to create your own registration, authentications using php/mysql/or javascript.

+1  A: 

http://www.tutorialized.com/tutorials/PHP/User-Authentication/1
There you can find lots of tutorials regarding that topic. Hope it helps ;)

Edit: I agree with Aviad Ben Dov, OpenID is a much nicer solution than writing your own login system.

x3ro
thanks for the link, but there are so many different ways of doing it. Can you recommend me one you like and tell me why
http://dev.thatspoppycock.com/index.php/Creating_a_Simple_PHP_and_MySQL-Based_Login_System Looks good to me, as it uses MySQLi for database connection.
x3ro
+5  A: 

If it's not some exercise where you have to implement your own authentication sequence, I'd suggest using OpenID for doing the heavy weight-lifting. It's simple, a lot of sites use it, and you'll get rid of a lot of hassle thinking of security, encryption etc.

You can read about the Zend framework for OpenID here, and a tutorial on how to use it here.

Aviad Ben Dov
We have too many login system already. A use of OpenID is the first thing the OP should consider
Ngu Soon Hui
His question was how he could create his own authentication system. Rolling his own would also provide him with additional experience. Programmers can never know enough.
Mr. Smith
I don't think OpenID is a good answer to the question.
pbreitenbach
@pbreitenbach: The guy wanted to have a registration and authentication service. OpenID is a great solution for him, unless he wanted to do it for personal experience (which I also specified in my answer). @Benjamin: Personal experience is always great, but if its going to have some production value and you're working under a schedule, it's always good to take something working and well known.
Aviad Ben Dov
+1  A: 

Creating a Secure PHP Login Script (PHP/MySQL)
PHP Login script tutorial (PHP/MySQL)
PHP MySQL Login Script
PHP - Implementing Secure Login with PHP, JavaScript, and Sessions (without SSL)

These are only a couple of the vast resources available. Dig dig dig! :)

Mr. Smith
Which one do you like the most?
PHP MySQL Login Script - It's simple to understand and they show you how to do it securely (which is of course, very important). You can also download the source code. The idea is to get the general gist of writing a login system, odds are, you won't be using the exact code in the tutorials. They are mostly guidelines.
Mr. Smith
A: 

I found this post from another SO question. Pretty thorough and easy to follow.

http://net.tutsplus.com/tutorials/php/user-membership-with-php/

CheeseConQueso