Jump to content

Using cookies/sessions to restrict access to files such as pdf, doc, etc.?

  • Please log in to reply
No replies to this topic

#1 Guest_convention_*

  • Guests

Posted 13 October 2006 - 10:01 PM

I know how to work with cookies and sessions, but I am wondering if they can be used to restrict direct access to files other than PHP (such as PDFs, DOCs, MP3s, etc.)? Like, if someone typed into their browser's address bar: 'www.mydomain.com/example.pdf' and if they don't have a cookie set, it would redirect them, give them a message, or something? Thank you.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users