I've the php code as below.
The variable $_SESSION['url']
has value and printing as it is.
Its not working if I called the session variable.
session_start();
header('Content-type: application/pdf');
readfile($_SESSION['url']);
But Its working, If we wrote as below.
session_start();
$_SESSION['url']= 'http://samplepdf.com/sample.pdf';
header('Content-type: application/pdf');
readfile($_SESSION['url']);
if anybody experienced this, how to solve this? Thanks in advance