Home » Authentication and Cookies

Authentication and Cookies

You need to implement a web application that is split into three parts, namely,

Webpage

,

PHP

, and

MySQL

. Each of them will be used concurrently to solve the problem described below. Remember to implement the logic in the most secure way to your knowledge.

PHP

  • Implement a PHP function that reads in input a string (user’s name, not username) from the user and stores it in a cookie.
  • The function should also be able to read another string (a comment) in input and store it in a database (only available if the user logged in).
  • The web application should be able to implement the logic to let log in and sign up the users.Each user will have exclusive access to their uploaded comments.When a user logs in, all their private content will be displayed on the web page.If no user has logged in yet, no information from the database is printed on the webpage.

Webpage

  • The page should hail the student with the message “Hello!”
  • If the user has visited the page already, the message should be “Hello ” plus the name of the user.
  • During sign-up, the user must be able to input a string (user’s name) using a text box, username, and password (no need to validate username and password).
  • Once logged in, the user must be able to input a string (a comment), using a text box.
  • The webpage allows users to input their credentials for both logging in and signing up (use a single page for both).
  • After a user logs in, the webpage prints their personal comments from the database.If there are no comments yet, nothing is shown for that specific user.

MySQLYou need to create a database that contains at least two tables. One to store the information in input to the webpage, the other to store the users’ credentials.The “credentials table” should contain at least these fields: username and password.The password should be stored in the most secure way to your knowledge.

SUBMISSION

  • You need to submit your web application in a .php file, no other format is allowed.
  • You will submit your ‘login.php’ file too.
  • No details about the database need to be submitted. The tables’ information can be inferred by the PHP code already.
  • Provide sufficient screenshots of how your application works (Ex: Before and after signing up, logging in, uploading comments, etc.).
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 30% with the discount code ESSAYHELP