Last post Apr 08, 2014 12:57 AM by markfitzme
Apr 07, 2014 04:11 AM|Scream4Me|LINK
I would like to add in a reserved area (so with ASP.NET autentication) a subdirectory accessible only by a certain user, is there a way to do this?
I mean, the logged username is User1, and the user that can access that directory is
aUser1, and if User1 try to access a page that is in there then it will require the password of aUser1.
Thanks in advance.
Apr 08, 2014 12:57 AM|markfitzme|LINK
If you use standard asp.net membership system, you can add a web.config to the subdirectory that has the following:
<deny users="?" />
<allow users="aUser1" />
More info at: http://msdn.microsoft.com/en-us/library/acsd09b0(v=vs.85).aspx