![]() |
Php Login System
Allright well a login system is what I have to do next... So To start I have a question. How does the code know that your logged in?
|
a cookie or a session. Cookie is the most preferred.
|
Ah i see...
|
Quote:
A session is a device which ties a series of HTTP requests together, using a cookie or GET/POST variable. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
the webserver has a setting for php which decides to store sessions as cookies only, or as cookies first and get/post as fallback, or just get/post. GET is pretty insecure to have your information in.
Normal login steps are. Have a form to enter login information Send form via POST to a php script Have the php script verify login information Have the script start a session (search for session at php.net for functions) with your username or some other identifier Whenever you need to use that information, access it through $_SESSION['variable'] |
| All times are GMT -5. The time now is 9:48 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC