Symfony uses a special session library that extends the PHP $_SESSION interface. To access all of the session attributes as a key => value array, you can use (from any controller/container):
$all_session_variables = $this->get('session')->all(); // Returns array() format
Or a specific session element using:
$key_session_variable = $this->get('session')->get('key'); // Returns the value stored in "key"
But this is only guaranteed to work assuming that you've previously set session variables using $this->get('session')->set().
Read more about Session Management here in the Symfony docs
Onto why you are getting a "$_SESSION does not exist" error: you haven't declared session_start()! Symfony hasn't done that for you either yet. But WAIT. Do NOT write that code since the same reference above states:
Symfony sessions are designed to replace several native PHP functions. Applications should avoid using session_start(), session_regenerate_id(), session_id(), session_name(), and session_destroy() and instead use the APIs in the following section.
You should instead use the Session library that Symfony provides because:
While it is recommended to explicitly start a session, a sessions will actually start on demand, that is, if any session request is made to read/write session data.