I have an asp app. I want to store some pdf documents in a folder that I have disabled anonymous access. Right now when I go to the folder I get a prompt for a user and password. I have already authenticated them via my own app. I would like to pass or impersonate a user account for the that folder. I need to be for the whole session. how would I accomlish this. This is not ASP.net
I have been trying this code, but when I go to the folder I still get a prompt:
' create an object for impersonating IIS to use a valid domain user instead of anonymous user IUSR_machinename
Set objLogon = Server.CreateObject("LoginAdmin.ImpersonateUser")
' any domain user who has rights to access active directory
objLogon.Logon "USERNAME", "PASSWORD", "DOMAIN"