Hi all,

Can anybody let me know how to protect pdf files from being accessed after the session has ended.(by typing the url).

If u could point to some code examples, that would be great.

Thanks,
kitty

-----------------------------
This message is posted by http://asp.forumszone.com

Re: protecting non-asp files by Bob

Bob
Fri Oct 08 13:45:18 CDT 2004

kirana_dayalu@yahoo.com wrote:
> Hi all,
>
> Can anybody let me know how to protect pdf files from being accessed
> after the session has ended.(by typing the url).
>
> If u could point to some code examples, that would be great.
>

Put them in a folder outside of wwwroot
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Re: protecting non-asp files by Ray

Ray
Fri Oct 08 17:55:02 CDT 2004


>> Can anybody let me know how to protect pdf files by typing the url.
>>
>
> Put them in a folder outside of wwwroot

And then you can return them with code such as this. (This particular
example is for "streaming" images back, but the same can be done with pdf
files as well.)
http://www.aspfaq.com/show.asp?id=2276

Ray at home