Jan 23, 2018 02:49 PM|sweetSteal|LINK
The supervisor can create a pdf file from a database.
The problem is after the file is created others user can access the pdf directly.
I want to murder url.pdf after 30 minutes. Thus no one can access it since its does not live anymore.
I do not have any experience doing this any ideas and suggestions would help.
//create file code above
string path = ResolveClientUrl("~/Appraisal/" + Empl.SelectedValue + ".pdf");
ClientScript.RegisterStartupScript(this.GetType(), "open", "window.open(" + encodedPath + ", '_blank');", true);
string location = Server.MapPath("~/Appraisal");
string delFile = location + "/" + Empl.SelectedValue + ".pdf";
catch (IOException iox)