Exercise: PHP cookies

In this exercise you must use the PHP cookies.

Getting started

Create a new PHP project in NetBeans.

Cookies

Make a page with a form where you ask for the users name and maybe other information.

Make another page that stores this information in one or more cookies.

Show the cookie content on the screen on both pages.

Azure + Wireshark

Publish your project in Azure.

Run the project and observer the HTTP requests and responses from Wireshark. Do you see the cookies?

Extra: Remove cookie

Add to the form to give the user an opportunity to remove the cookie.