Exercise: PHP sessions

In this exercise you must use the PHP sessions.

Getting started

Create a new PHP project in NetBeans.


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 the session.

Show the session variables 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 session cookies?

Extra: Remove session

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