PC Review


Reply
Thread Tools Rate Thread

Authentication enabled for all but a single directory or file.

 
 
UJ
Guest
Posts: n/a
 
      8th Aug 2005
I have a web site up and going and on the main login screen there's a help
menu option. If the person selects that before they have logged in, it
attempts to redirect them to a page telling them how to log in. Problem is
though that since they haven't been authenticated, the authentication
redirects them to the login page.

How can I have a specific directory or even a single page not require
authentication. I don't want to make the entire site a subdirectory - I'd
rather leave the directory structure as it is.

Here's the authentication line from my web.config:

<authentication mode="Forms">
<forms name="Login"
loginUrl="common/Login.aspx"
protection="All"
path="/"
timeout="30"></forms>
</authentication>


TIA.

Jeffrey


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QW5kZXJzIEJvcm5ob2xt?=
Guest
Posts: n/a
 
      8th Aug 2005
Check out the <location> element in the web.config.

http://msdn.microsoft.com/library/de...ionelement.asp

"UJ" wrote:

> I have a web site up and going and on the main login screen there's a help
> menu option. If the person selects that before they have logged in, it
> attempts to redirect them to a page telling them how to log in. Problem is
> though that since they haven't been authenticated, the authentication
> redirects them to the login page.
>
> How can I have a specific directory or even a single page not require
> authentication. I don't want to make the entire site a subdirectory - I'd
> rather leave the directory structure as it is.
>
> Here's the authentication line from my web.config:
>
> <authentication mode="Forms">
> <forms name="Login"
> loginUrl="common/Login.aspx"
> protection="All"
> path="/"
> timeout="30"></forms>
> </authentication>
>
>
> TIA.
>
> Jeffrey
>
>
>

 
Reply With Quote
 
UJ
Guest
Posts: n/a
 
      8th Aug 2005
Could somebody post code to do this please? I can't get it to work. And the
help on the Microsoft page is really unhelpful. Here's what I have at the
moment. It works only on the login page. After that you get a Unrecognized
attribute 'location'. error.

TIA - Jeffrey.


<authentication mode="Forms">
<forms name="Login"
loginUrl="common/Login.aspx"
protection="All"
path="/"
timeout="30"></forms>
</authentication>

<authorization>
<deny users="?" />
<allow users="*" location="/LoginHelp.html"></allow>
</authorization>




"Anders Bornholm" <(E-Mail Removed)> wrote in message
news:A9A992D6-68AA-4995-BCA7-(E-Mail Removed)...
> Check out the <location> element in the web.config.
>
> http://msdn.microsoft.com/library/de...ionelement.asp
>
> "UJ" wrote:
>
>> I have a web site up and going and on the main login screen there's a
>> help
>> menu option. If the person selects that before they have logged in, it
>> attempts to redirect them to a page telling them how to log in. Problem
>> is
>> though that since they haven't been authenticated, the authentication
>> redirects them to the login page.
>>
>> How can I have a specific directory or even a single page not require
>> authentication. I don't want to make the entire site a subdirectory - I'd
>> rather leave the directory structure as it is.
>>
>> Here's the authentication line from my web.config:
>>
>> <authentication mode="Forms">
>> <forms name="Login"
>> loginUrl="common/Login.aspx"
>> protection="All"
>> path="/"
>> timeout="30"></forms>
>> </authentication>
>>
>>
>> TIA.
>>
>> Jeffrey
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms Authentication for single directory Sean Microsoft ASP .NET 1 14th Nov 2008 05:38 PM
Would like to write batch file to copy all TXT files in a given directory and all subdirectories to a single target directory. Rob Windows XP General 5 20th Aug 2007 02:42 PM
Enabled Integrated Windows Authentication George Spiro Microsoft Windows 2000 DNS 1 12th Jan 2007 01:34 PM
No Wired Authentication Tab with Wireless is Enabled Techhead49 Windows XP Networking 0 18th Jul 2006 04:31 PM
single active directory domain single site and multiple network =?Utf-8?B?c2lmaXNo?= Microsoft Windows 2000 Networking 0 21st May 2004 05:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 PM.