in php file:
$app->get('/your_route_here', function() use ($app) {
$app->render('view_for_route.twig', array('session_username' => $_SESSION['username']) );});
in twig file:
welcome {{ session_username }}
You should pass the value from your PHP file into Twig via associative array.