Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

< < PHP >> Instructions Create a new PHP project with your name in the title as before. In the project, create these three files.

<< PHP >>

Instructions

Create a new PHP project with your name in the title as before. In the project, create these three files. NOTE: in this assignment the $_SESSION[ ] array elements are referred to as session cookies.

1. page1.php

  • start a session and display the session ID.
  • assign the string 'Hello world' as a session cookie. You pick the key for this element.
  • then use the $_SESSION array to display the string in this latter cookie.
  • assign two more session cookies (you make up the keys and values), but don't display these.
  • add an HTML hyperlink that will execute page2.php when clicked.

2. page2.php

  • assign 'Murach' to another element of $_SESSION. Use the key 'publisher'.
  • delete the cookie that stored 'Hello world'.
  • use a foreach loop to display all session cookie names and values.
  • add another hyperlink that will execute page3.php when clicked.

3. page3.php

  • delete all session cookies and destroy the session on the server.
  • delete the session cookie from the browser.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago