Posted on: 11/20/2013 2:31:35 PM | Views : 911

Suppose I have a folder called "MyVids" which contains videos.  I want only certain people to see certain videos.  Person A can see Videos 1,2,3,  Person B can see Videos 5,6, etc.   
In theory, I could use Membership and roles, and put different videos in different folders, each with its own web.config protecting its contents.  However, the problem is that I can have 500+ viewers, each with different combinations of videos they can see.  I can't know in advance how many folders I'll need (in that scenario).
So ideally, there would be a dll or handler of some kind that gets between the video and the user, and which checks permissions, before allowing the video to play on the user's browser.  Something like: "is www.mysite.com/MyVids/GoneWithTheWind.mp4 accessible by John Smith"?
I don't think ashx handlers are the answer, be ...

Go to the complete details ...