473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Authentication enabled for all but a single directory or file.

UJ
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
Nov 19 '05 #1
2 1097
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

Nov 19 '05 #2
UJ
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" <an************@iteam.se.removethispart> wrote in message
news:A9**********************************@microsof t.com...
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

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
4
by: Matt | last post by:
The ASP.NET application connects to MS-SQL database, and I already disabled Anonymous access in IIS, and add ASPNET user in it. When I run the application, it throws the following error on windows...
12
by: Brett Robichaud | last post by:
Is anyone familiar with this error? I have this running just fine on my local machine but when I pushed it out to our development server I get this error. I have no idea what it is saying. Any...
4
by: Bennett Haselton | last post by:
If I add this to my web.config file: <authentication mode="Forms"> <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" /> </authentication> I can configure the...
4
by: WebBuilder451 | last post by:
I have an app that will direct to the login on any unauthorized access. It will redirect back to the calling page when authenticated. Now here is the problem. I'm allowing for user registration...
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
11
by: benoitc | last post by:
I've been having a problem debugging an ASP.NET 1.1 application on an existing Windows XP/Visual Studio 2003 workstation that I've inherited from somebody else. The application builds fine, but...
1
by: Sean | last post by:
Hi, I've taken over a website, which has an admin section that is currently open. I added Forms Authentication to the admin directory with the using the location section in web.config: ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.