core-bundle/src/Resources/contao/library/Contao/Session.php
public function getData()
	{
		$data = $this->sessionBag->all();

		// Map the referer (see #281)
		foreach ($this->mappedKeys as $strKey)
		{
			unset($data[$strKey]);

			if ($this->session->has($strKey))
			{
				$data[$strKey] = $this->session->get($strKey);
			}
		}

		return $data;
	}
public function getData()
	{
		$data = $this->sessionBag->all();

		// Map the referer (see #281)
		foreach ($this->mappedKeys as $strKey)
		{
			unset($data[$strKey]);

			if ($this->session->has($strKey))
			{
				$data[$strKey] = $this->session->get($strKey);
			}
		}

		return $data;
	}
Return the session data as array

@return array The session data