How can one access session variables in PHP?

Session variables in PHP can be accessed using the `$_SESSION` superglobal array. To access a session variable, you simply need to reference it as `$_SESSION['variable_name']`. Make sure to start the session using `session_start()` before attempting to access any session variables.

<?php
session_start();
// Accessing a session variable
$variable = $_SESSION['variable_name'];
echo $variable;
?>