Link to home
Start Free TrialLog in
Avatar of bidgadget
bidgadgetFlag for United States of America

asked on

Windows Server 2003 IIS Virtual Directory not inheriting forms authentication

i have a website that uses form authentication.  However when I point the url to a pdf file under the virtual directory it does not ask for a login.  It will go directly to that file.  I want it to login first.

Thank you
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

If you are authenticating by classic asp, you are only authentication pages that have your authentication page. Images, pdf files and other documents are not part of that authentication.

What you want to do is bury your documents that you want private outside of the www.  Then use FileSystemObject https://msdn.microsoft.com/en-us/library/aa242706%28v=vs.60%29.aspx to retrieve and store using your vb coding.
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bidgadget

ASKER

Thank you.  I will try these solutions tonight.
Thanks so much!!!!!!!