Concept Flow - Why variables do not persist between requests
Start Request 1
Set variable $x = 5
End Request 1 - Script stops
Start Request 2
Variable $x does NOT exist
Set $x again or error
End Request 2
Each web request runs a new PHP script instance, so variables set in one request are lost when it ends.