0

I have to create a folder at user creation time and also have to restrict other users from accessing that folder, so only that particular user can access that folder.

So finally I decided to allow and deny access to that folder using web.config. I don't want to do manual setting for every user. So how can I create dynamic folder authorization setting in web.config.

<location path="secure/files/support@userid.com">
<system.web>
  <authorization>
    <allow users="support@userid.com"/>
    <deny users="*"/>
  </authorization>
</system.web>
</location>

Is there another way to do this?

egrunin
  • 24,650
  • 8
  • 50
  • 93
  • I think rather than using web.config file you should create a httphandler and access the folder thought that only. Because I thing there should a common place from where all these file should be access only then you will able to do this. – शेखर Oct 31 '12 at 06:44
  • see this post http://stackoverflow.com/questions/9990760/web-config-allow-location-access-for-specific-user – शेखर Oct 31 '12 at 06:54

0 Answers0