How to write a website login system -


I am looking for the best way to write a website login system.

I have a desktop software developer and minimal website coding with HTML, CSS and PHP as well.

My target user for website login system sign up for the site, edit your profile, and view information such as purchases etc. ...

Option to add features such as help desks from inside the entry software.

My question is, what is the best way to do this?

  1. Code by hand: Which language / framework is best to use for it? Ruby on Rails? Symfony? Kppp?

  2. Is there a better outsourcing option to consider?

Write a login system is as easy as you think You need a database on which you save usernames and user passwords, you input the name 'username' password, you pass that file as the file on which you are posting the entered data Are there. In your file, you first have a username like $ name = $ _ post ['username']; $ = $ _ Post ['password'] passed; Now you need to connect to your database that you can compare the username and mailed password you entered, or you can define the predefined value like mypassword here is an example

 < Code> session_start (); If (isset ($ _ POST ['login'])) {$ password = $ _POST ['pswd']; If ($ password == "mypassword") {// Change my password with your password $ _SESSION ['phplogin'] = true; Header ('location: index.php'); // Change index.php with which page you want to go after successful login exit; } And echo "Enter the correct login details";  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -