I want to authenticate user to access virtual directory that contains (MP4, SWF, MP3, Images, HTML and other static files). this virtual directory is used by another web application that exists in different server. I means below case:
Server A: Contains web application that user can access it using username and password and saved in session state.
Server B: Contains virtual directory that contains static files.
i want to give access to this virtual directory files only if this user is logged in and authenticated in Server A.
How can i achieve this and which is the best practice ti achieve that??
PS: I make aspx page or .ashx handler that authenticate user and make response.write to this file but i have problem with streaming concept and i face another problem in SWF files that embed element doesn't work fine when i gave it src=Handler.aspx?file=a001.swf