Skip to content

Sessions

Sessions allow storing data on the server for each user.

Session data persists across multiple requests.

session_start();
$_SESSION["user"] = "Alice";