Stage 5: PHP Backend Engine

PHP Sessions

Sessions allow you to store user data across multiple pages.
session_start();
$_SESSION["user"] = "Lucky";

Practice Task

Create a session variable called "role" and set it to "admin".