Hi , I am using a session variable to store my login info. Actually I am looking for a solution exactly similar to what we have on this site. I dont want to display link not available. I have certain doc files,zip files for download where i would display the link something like http://www.mydomain.com/abc.doc but when the user clicks on this link i want then to be forced to login if not logged in. So the problem is how to protect any link like this? If I would have been redirecting a user to any ASP page then its very easy to check the session value and then either permit or deny, but how to check on a link which directly points to a doc file or zip file ? I hope i am not sounding like a fool :) Thanks a lot for all the help so far.
P
pforu1
@pforu1
Posts
-
Link protection -
Link protectionHi, Buddy i forgot to mention earlier that the page is in Classic ASP as opposed to Asp.Net..Sorry for that. Please help.. Thanks P
-
Link protectionDear All, I want to know how to protect a file from downloading if the user is not logged in;just the way its done here on codeproject? Suppose the file url is http://www.mydomain.com/photos.zip Download file Depending upon the login status it should either redirect to login page or proceed with download of the zip file, when download file link is clicked.I need the exact functionality of codeproject download feature. Thanking you all in advance.