Discuss the purpose of http with reference to its advantages

Assignment Help Programming Languages
Reference no: EM132146681

PHP & SESSION MANAGMENT ASSIGNMENT -

This assignment looks at using PHP for creating cookies and session management.

Class Exercise - Web Project: Member Registration/Login

This exercise will cover adding data connectivity to dynamic web pages, implementing login, registration and member pages with session management using sessions. A solution is provided but you should first attempt the exercise yourself.

1. Create a database called cartdb and add the customer table with following fields

Filed Name

Data Type

Other Info.

First_Name

Varchar(20)

Not Null

Last_Name

Varchar(20)

Not Null

Phone

Varchar(20)

Not Null

Password

Varchar(20)

Not Null

Email

Varchar(30)

Primary Key

Note: We will be using the email address as the primary key to avoid complexity.

2. Modify the given PHP script (in attached file) (register.php) to insert customer details to the customer table. Use register.htm to input the values.

Note: 'conn_db.php' is used to connect to the database - replace user/password with correct values.

3. Modify the given PHP script (login.php) using login.htm to validate the user name and password with the database. Your script should also register a new session if the user is a valid user and direct the user to the member page, which will display a greeting to the user. Re-direct the user back to the login page.

4. Use logout.php to destroy the current session and log the user out.

Activity - Cookie

  • Capture the customer id in a cookie
  • On the page which displays the customer id, display another form (radio button) asking if the customer wishes to receive a newsletter.
  • When customer submits response, a PHP script should use the cookie to access and update that customers record in the database.

You will need to create the following 4 files.

1. createDb.php

2. Screenshot: custdetails.htm

3. Screenshot: custinsert.php

4. Screenshot: custupdate.php

Discussion -

1. Discuss the purpose of HTTP with reference to its advantages and disadvantages, how it is useful in developing web applications, it's limitations in web applications.

2. Review and discuss how your project 3 (on server-side scripting) can utilise session management and statelessness. List the purpose of session management and stateless programming.

3. Discuss how you might implement web authentication and security.

Attachment:- Assignment File.rar

Reference no: EM132146681

Questions Cloud

Determine at what point the risk of an investments outweighs : As a financial manager, determine at what point the risk of an investments outweighs the potential reward. Provide support for your rationale.
What steps can bidders take to prosper in auctions : What steps can bidders take to prosper in auctions and/or corporate acquisitions? The course name is strategic management.
What is the labor utilization : What is the labor utilization?
Predict two ways that the sharpe ratio of complete portfolio : Justify whether the standard deviation or covariance is the most significant measurement when adding a risky asset to an already highly risky portfolio.
Discuss the purpose of http with reference to its advantages : Discuss purpose of HTTP with reference to its advantages and disadvantages, how it is useful in developing web applications, it's limitations in web application
Amazon sells thousands more of your book than apple does : Now, Amazon sells thousands more of your book than Apple does, so Amazon has made more money.
Commercial realities conflict with the public : According to Firestone's tire recall case, evaluate and discuss the role of leadership when commercial realities conflict with the public safety concerns
Did the company become more profitable : Provide 1 of the following pieces of information using the income statement and statement of retained earnings for the company.
Write a spreadsheet that allows the user to input his age : Write a spreadsheet that allows the user to input his (or her) age today, salary today, growth rate in salary initial investment.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd