Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Non-Html Document File Protection...


Message #1 by "John Buckley" <john@b...> on Fri, 5 Apr 2002 20:14:30
Hello,

I am trying to write a helper file that would enable a session based 
security system limit users' access to files like word docs or pdf's...  

Basically, I want my asp files to be surrounded with the security model 
code, then launch the appropriate Mime headers & then point to a file in a 
non-web-accessible directory, and output its content.  

I have to admit my ASP skills are a bit rusty, but I have done this in 
other Server-Side languages like Perl & PHP...  The last step that I have 
not been able to figure out, yet is the file output.  It doesn't seem like 
a necessarily need to read and display the content line-by-line (that only 
produces unreadable binary code, anyway)...  All I need to do is launch 
the file...  Is this impossible?

Thanks,
john

  Return to Index