Question: In this assignment, you will be writing a PHP script that will set a cookie on one page and then pass the cookie to a
In this assignment, you will be writing a PHP script that will set a cookie on one page and then pass the cookie to a second page. This will require some research on your part.
Page
Set the cookie value.
Set the cookie to expire in day.
Set the cookie.
Redirect to another page.
Page
Check to see if the cookie is set.
Get the cookie value.
If the cookie is set display the cookie value.
If the cookie is not set display "The cookie is not set."
When you load Page the PHP script will automatically execute and then redirect the browser to the second page that should display the cookie value. Your results should look something like this:
The value of the cookie is: examplecookievalue
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
