I have a solution where one page requests the html from another page to build a PDF for download. How can I restrict direct browsing to the pdf-page when login Session variables are not accesible? Basically, I want pdf.aspx to only be accessible by the server.
private void DownloadPDF(string param)
{
byte[] bytes = PDFCreator.CreateFromURL("pdf.aspx?parameter=" + param);
//download bytes
}