ABSTRACT

PHP provides a very simple default mechanism to manage sessions. At the beginning of a page, call session_start(), and add any session data to $_SESSION array, like $SESSION['userName'] = $userName. Storage of session data, lookup of session data, and client cookie management is all handled for the developer behind the scenes.