Question: application In this exercise, you will modify and enhunce the Shopping Cart application. Open and test the application Run the application that's ssorod in the

application
In this exercise, you will modify and enhunce the Shopping Cart application.
Open and test the application
Run the application that's ssorod in the ex_starts/ch12_eal directory.
Test this application by alding several itcens to the cart. Then, ecit the
browser, restart it, and view the cart. Since this application uses a persistent
session cookic, this should display any ifems that were previoesly in the cart.
Open the index php file for this application and review the code. Note that this
code cunfigures the cookic for the session so it persists for two weeks.
Use a session cookie
Modify the code that configures the cookic for the session se the session uses
a session cookie.
Test this change to make sure it works courectly. You should be able to remove
all items from your cart by exiting the browser. (If the items aren't removed
from your cart, you may noed lo clange the sctlings for your brow scr so it
doesn't remember the session cookie.)
Use a pernistent cookie that lasts for 3 years
Modify the code that cunfigures the cookic for the session so the session
persits for three years.
Add code that displays the session ID at the botion of both pages of the
application.
Test these changes. The session ID should remain the same even if you exit
and restart the browser.
Add a link to the Cart page that says "End Session and Delete Cookie". Then,
add code that processes this link by clearing all session data from memory.
cleaning up the session ID, and deleting the cookie for the session.
Teat this change. When you click the "Empty Cart' link, the items should be
removed from the cart, but the session ID should stay the same. When you
click the "End Session" link, the items should be removed from the cart, and
the session ID should be cleared. Then, if you add an item to the cart, the Cart
page should display a new session ID.
Using Murach's PHP and MySQL (4th Edition)
A screenshot of the solution of the practice assignment, thank you :)
application In this exercise, you will modify and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!