In my mysqli it was easy
$_SESSION['userphoto'] = $row['userphoto'];
How to make PDO work?
ConnectionLogin.php
session_start();
$stmt->bindParam(':email', $_POST['email']);
$stmt->bindParam(':senha', md5($_POST['senha']));
$stmt->execute();
$row = $stmt->fetchAll(PDO::FETCH_ASSOC);
if($row > 0){
$_SESSION['email'] = $_POST['email'];
$_SESSION['userphoto'] = $row['userphoto'];
//$_SESSION funcionava certo no MYSQLI