|
|
#1 |
|
New Member
![]() Join Date: Aug 2009
Posts: 2
|
I don't have much time. I am on the public library computer and I'm trying to design a website without a home computer at the moment (on paper). Please refrain from 'rtfm' responses.
I'm also not very experienced with web programming. I will be using php/mysql probably on host monster's web hosting services. I have not sign up for host monster yet so I'm not really sure if they will allow me to create actual SYSTEM users on their linux server. I have never designed a site where users log in and have their personal information stored on the server so the WHOLE concept is new to me. 1. For example on this site, when I signed up here (webdesignforum), did I get my own system account with the operating system? Is that what most sites do? 2. Would it be a bad idea to store user passwords in a mysql database? 3. What would you suggest? In summary, I'm designing a web site for the first time with tools and technologies that I'm not familiar with to begin with. I want users to be able to register their own accounts and I also want to store information and there password. I want to know how to do this. Have to go quickly |
|
|
|
|
|
#2 |
|
Gold Member
![]() Join Date: Oct 2008
Location: Ireland
Posts: 349
|
Ok,
No they don't create new users on the OS. Yes they do store user info in the database, which if done properly is safe. There are a few things that you need here. First you need to set up a session to detect if people are logged in or not. Code:
if(@$_SESSION['logged_in']!=1)
header('location:login.php');
One big thing to remember. When you are storing passwords in the database they must be encrypted. For example: Code:
$password='test'; $encrypted=md5($password); If you have any other questions just ask!
__________________
Conor |
|
|
|
|
|
#3 |
|
New Member
![]() Join Date: Aug 2009
Location: South Carolina
Posts: 16
|
1. No, they store their username and password in a database, emulating an account. They don't change anything on the OS except they mysql table.
2. It would be fine if done properly. You should encrypt the passwords however. Most people hash them with PHP functions like md5 and sha1. On really secure websites, I'll hash them more that once making it harder to crack. 3. As for registering users use a mysql insert command: PHP Code:
PHP Code:
|
|
|
|
|
|
#4 | |
|
Gold Member
![]() Join Date: Oct 2008
Location: Ireland
Posts: 349
|
Quote:
Those people who attempt to "break the system" and that are building lists of all the known md5 hashes are fools and will be waiting until the end of the universe for the computer to be finished working! :-)
__________________
Conor |
|
|
|
|
|
|
#5 |
|
New Member
![]() Join Date: Aug 2009
Posts: 2
|
Cool...thanks for the info guys.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|