Page 1 of 1

user authentication

Posted: Mon May 04, 2009 7:40 am
by aneuryzma
hi,

could you suggest me some tutorial/book about how to implement:

the users authentication (login / logout) and how to store profiles... etc ?

thanks

Re: user authentication

Posted: Mon May 04, 2009 12:55 pm
by ldougherty
Hello,

The most popular way to handle logging in and out via PHP is with Sessions. The following tutorial from w3schools should get you pointed in the right direction.

http://www.w3schools.com/PHP/php_sessions.asp

As for storing profiles, this depends on what you want to store. For example I've created a login system on a gallery that just uses sessions to determine if you are logged in or not and the username/password used to log in references the mySQL backend where user profile information is stored.

If you want to store login information so that the user is recognized the next time they visit your site you'll want to look into Cookies

http://www.w3schools.com/PHP/php_cookies.asp

Hope this helps out.

Re: user authentication

Posted: Tue May 05, 2009 9:56 am
by aneuryzma
thanks for suggestion!

I've found also this one.. if can help somebody else..

http://www.phpro.org/tutorials/Basic-Lo ... MySQL.html