forms authentication problem
-
i'm having a problem securing some of my pages using forms authentication. i define the private pages in web.config, but i can get to those pages without logging in. here is my web.config... is there an error??
I thought you can only do private pages for .aspx pages not for htm pages?
-
I thought you can only do private pages for .aspx pages not for htm pages?
-
you are correct. thank you. i changed the file name to .aspx and it worked. however, is it in any way possible to secure non aspx files with forms authentication? we have a bunch of pdf's which need to be password protected.
No worries, what I normally do. I have a directory in the Server with the PDF files and a file called ViewPDF.aspx. The only way to access the PDFs are by ViewPDF.aspx?PDFid=93639 that referece to a pdf file name into the SQL database, so I do Response.Redirect to that file, so they cannot get a bookmark to the PDF location. Makes sense? Cheers Al
-
I thought you can only do private pages for .aspx pages not for htm pages?
Even when you tell IIS that .html files should be handled by ASP.NET? David Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy