<? session_start(); $img = $_SESSION['images'][$_GET['id']]; header("Content-type: image/jpeg"); echo $img; ?>