Ask a Question related to ASP.NET Security, Design and Development.
-
VIC #1
Forms Authentication for particular folder
Hi,
I'm working on a webapplication, most part is for anonymous access, but for
one part login is needed. All the files after login are in one particual
folder: "/login".
Usernames and passwords are stored in a tabel on SQL Server.
The loginpage and Web.config are in the root of the web.
I've tried several things but I don't get it work correctly.
My code of checking against the table works correctly, I'm struggling with
Web.config.
The authentication section of Web.config is like:
<authentication mode="Forms">
<forms name="justaname"
path="/"
loginUrl="login.aspx"
protection="All"
timeout="20">
</forms>
</authentication>
All I want to manage is to allow anonymous acces for the whole website,
except the content of the subfolder "/login".
Any help is appreciated, thanks!
VicWare
Email: info@vicREMOVE-MEware (spamblock)
VIC Guest
-
Applying security at folder level using forms authentication
Hi I have two folders in the .net application,one can be accessed by everyone adn the other needs to be accessed only through submitting login and... -
ASP.Net Forms authentication with basic authentication popup
Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user... -
Forms authentication then redirection to a secure web with NT authentication?
Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've... -
Authentication ticket, cookieless, forms authentication?
Hi. I want to use Forms Authentication, cookieless. The issue is setting the Authentication Ticket without using cookies (!) That is, the... -
Protected folder with forms authentication
i have a VB.NET ASP.NET application. the front end is working fine, and know im developing the manager options. this options have to be in a... -
Ken Schaefer #2
Re: Forms Authentication for particular folder
You need to create a new <location> in your web.config and point it to your
folder. Configure forms auth for that location only
Cheers
Ken
"VIC" <nomail@nomail.com> wrote in message
news:40dfc41b$0$10303$756600cd@news.cambrium.nl...
: Hi,
:
: I'm working on a webapplication, most part is for anonymous access, but
for
: one part login is needed. All the files after login are in one particual
: folder: "/login".
:
: Usernames and passwords are stored in a tabel on SQL Server.
: The loginpage and Web.config are in the root of the web.
:
: I've tried several things but I don't get it work correctly.
: My code of checking against the table works correctly, I'm struggling with
: Web.config.
:
: The authentication section of Web.config is like:
:
: <authentication mode="Forms">
: <forms name="justaname"
: path="/"
: loginUrl="login.aspx"
: protection="All"
: timeout="20">
: </forms>
: </authentication>
:
: All I want to manage is to allow anonymous acces for the whole website,
: except the content of the subfolder "/login".
: Any help is appreciated, thanks!
:
: VicWare
: Email: info@vicREMOVE-MEware (spamblock)
:
:
Ken Schaefer Guest
-
ranganh #3
RE: Forms Authentication for particular folder
Dear VIC,
You need to add the following code to your web.config file.
<location path="login">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
Hope it helps.
Thanks.
"VIC" wrote:
> Hi,
>
> I'm working on a webapplication, most part is for anonymous access, but for
> one part login is needed. All the files after login are in one particual
> folder: "/login".
>
> Usernames and passwords are stored in a tabel on SQL Server.
> The loginpage and Web.config are in the root of the web.
>
> I've tried several things but I don't get it work correctly.
> My code of checking against the table works correctly, I'm struggling with
> Web.config.
>
> The authentication section of Web.config is like:
>
> <authentication mode="Forms">
> <forms name="justaname"
> path="/"
> loginUrl="login.aspx"
> protection="All"
> timeout="20">
> </forms>
> </authentication>
>
> All I want to manage is to allow anonymous acces for the whole website,
> except the content of the subfolder "/login".
> Any help is appreciated, thanks!
>
> VicWare
> Email: info@vicREMOVE-MEware (spamblock)
>
>
>ranganh Guest
-
VicWare #4
Re: Forms Authentication for particular folder
That works!
Thanks a lot!
Vic
"VIC" <nomail@nomail.com> schreef in bericht
news:40dfc41b$0$10303$756600cd@news.cambrium.nl...for> Hi,
>
> I'm working on a webapplication, most part is for anonymous access, but> one part login is needed. All the files after login are in one particual
> folder: "/login".
>
> Usernames and passwords are stored in a tabel on SQL Server.
> The loginpage and Web.config are in the root of the web.
>
> I've tried several things but I don't get it work correctly.
> My code of checking against the table works correctly, I'm struggling with
> Web.config.
>
> The authentication section of Web.config is like:
>
> <authentication mode="Forms">
> <forms name="justaname"
> path="/"
> loginUrl="login.aspx"
> protection="All"
> timeout="20">
> </forms>
> </authentication>
>
> All I want to manage is to allow anonymous acces for the whole website,
> except the content of the subfolder "/login".
> Any help is appreciated, thanks!
>
> VicWare
> Email: info@vicREMOVE-MEware (spamblock)
>
>
VicWare Guest



Reply With Quote

