In this example, we retrieve the value of the "favorite_color" session variable that we set in the previous example using the $_SESSION superglobal array. Package Library: The PHP session functionality is part of the core PHP language and does not require any specific package or library to be installed.