protecting non-asp files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    protecting non-asp files

    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

  • Bob Barrows [MVP]

    #2
    Re: protecting non-asp files

    kirana_dayalu@y ahoo.com wrote:[color=blue]
    > 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.
    >[/color]

    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.


    Comment

    • Ray Costanzo [MVP]

      #3
      Re: protecting non-asp files

      [color=blue][color=green]
      >> Can anybody let me know how to protect pdf files by typing the url.
      >>[/color]
      >
      > Put them in a folder outside of wwwroot[/color]

      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.)


      Ray at home



      Comment

      Working...