I am trying to pass all the variables stored in SESSION independent variables as follows:

```
<?php

session_start();
ini_set('display_errors', 'off');
ini_set('display_startup_errors', 'off');

$vars = array('id','name','mail1','mail2','phone1','phone2','address','genere',
                        'departament','tittle' );
    foreach ($vars as $v) {
            if (isset($_SESSION[$v])) {
                $$vars[v]= $_SESSION[$v];
                echo $$vars[v].'<br />';
            }
        }
    echo $name;
    echo </ br>;            
    echo $mail1;

?>

```

but when I try to print the contents of a variable, apparently is empty. What am I doing wrong?