Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest kilbad

Want to make mysql based secure php login, but need opinion about which tutorial

Recommended Posts

Guest kilbad
I want to make a mysql based secure php login, but need opinion about which tutorial to use.  I am somewhat new to using mysql and php so I need something with good explainations of the code.  I started using http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/  but then read some bad comments about the method it used at
http://www.digg.com/programming/HOW_TO:_Create_a_secure_PHP_login_script

So, to learn how to make a mysql based secure php login, what beginner tutorial would you recommend?

thanks in advance.

Share this post


Link to post
Share on other sites
try this one.
http://www.plus2net.com/php_tutorial/php_change_password.php

I used it and made some changes but it works fine

also you may want to take some bits like md5 password from here
http://www.phpfreaks.com/tutorials/40/0.php

The first part of the tutorial lets the user choose a password where the second one doesn't.  I chose to let the user choose their own password and use the part in the second tutorial where the user is emailed an activation link with their password encryted in md5.  the user has to click the link to activate their account.

I took bits out of each to make my login system how i wanted it

Share this post


Link to post
Share on other sites
yeah like he said with md5 also for double security

sha1(md5($_POST['password'])){

but you would have to output that on the login page also the registration page ;).

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.