01 HTML Basics 02 Text Exercises 03 Text Formatting 04 Link Exercises 05 Images & Lists 06 CSS Margin 07 CSS Padding Left 08 CSS Outline 09 CSS Table Styling 10 CSS Dimensions 11 MySQL Database 12 Session Management

Activity 12: Members Only Session Management

This activity demonstrates a functional login and logout system using PHP sessions. A session allows the website to remember if a user is logged in.

Try opening the Members Only page. If you are not logged in, the website will redirect you to the login page.

Go to Login Page Open Members Only Page Logout

Session Protection Source Code