hi,
could you suggest me some tutorial/book about how to implement:
the users authentication (login / logout) and how to store profiles... etc ?
thanks
user authentication
Moderator: General Moderators
-
ldougherty
- Forum Contributor
- Posts: 103
- Joined: Sun May 03, 2009 11:39 am
Re: user authentication
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.
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
thanks for suggestion!
I've found also this one.. if can help somebody else..
http://www.phpro.org/tutorials/Basic-Lo ... MySQL.html
I've found also this one.. if can help somebody else..
http://www.phpro.org/tutorials/Basic-Lo ... MySQL.html