I have a session variable like this in a controller
$session->set('data', array(
'address'=>$form->get('address')->getData(),
'detail'=>$form->get('detail')->getData(),
'email'=>$form->get('phone')->getData(),
));
I am getting it in another controller like this
$session = $request->getSession();
$data = $session->get("data");
If I try to access the above session in a twig file it throws exception
{{ app.session.get('data') }}
Please how do I display the above session data in a twig file Please what could be wrong?