473,387 Members | 1,453 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,387 software developers and data experts.

Two different loginURLs in <authentication>

Hajo,
I know that I can not have two
different <authenication> sections in ONE application. But I need to
define two different login pages for two different subdirectories.
Is it any workaround that allows me to do it using Forms authenication?

thanks in advance

Gawel
Nov 18 '05 #1
4 1941
My impression of web.config files is that properties can be overridden
in subdirectories. I have taken advantage of this feature for certain
situations. For example, with an Intranet that I developed users see a
boilerplate Intranet error page when an error occurs. Some content
writers need to prepare .aspx pages from time to time, referencing user
controls etc. If all they saw was the boilerplate error message if their
include paths were off for their <%@ Register tags, they would not get
as far as fast developing their content. So for their staging area there
is a web.config that shows them full error messages.

Just for the sake of it try adding a web.config in your subdirectory and
alter the forms authentication path to see what happens.
Gawel wrote:
Hajo,
I know that I can not have two
different <authenication> sections in ONE application. But I need to
define two different login pages for two different subdirectories.
Is it any workaround that allows me to do it using Forms authenication?

thanks in advance

Gawel


Nov 18 '05 #2
Just for the sake of it try adding a web.config in your subdirectory and
alter the forms authentication path to see what happens.


hajo,
thanks for resposne, can you explain what does
it mean "he forms authentication path"?

Gawel

Nov 18 '05 #3
In your subdirectory web.config, try changing this:

<authentication mode="Forms">
<forms ... loginUrl="YOUR NEW URL HERE" protection="All"
timeout="60000000"
requireSSL="false">
</forms>
</authentication>

Shan

Gawel wrote:
Just for the sake of it try adding a web.config in your subdirectory
and alter the forms authentication path to see what happens.

hajo,
thanks for resposne, can you explain what does
it mean "he forms authentication path"?

Gawel


Nov 18 '05 #4
Shan Plourde wrote:
In your subdirectory web.config, try changing this:

<authentication mode="Forms">
<forms ... loginUrl="YOUR NEW URL HERE" protection="All"
timeout="60000000"
requireSSL="false">
</forms>
</authentication>


Hajo,
I can not have such a section in web.config that is in
subdirectory. This section can be declared only in application
level :(. That's way I asked about workaround

gawel
Nov 18 '05 #5

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

Similar topics

6
by: Pete Mahoney | last post by:
I am trying to 'POST' values from a form in a ASP file that has anonymous access permissions. I can retrieve the form values when I redirect to this page from another page which has also has...
5
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but...
1
by: Anton ml. Vaheie | last post by:
How do I convince (what I have to set in asp.net server) that my program that is using <authentication mode="Forms" /> can write to, copy, etc. files in directories on local disk? I have given...
3
by: T. Regan | last post by:
I have a test app where I have Forms Authentication set up. When I build and run the app as http://localhost/testapp/login.aspx, it runs correctly. I get the login prompt and the proper...
2
by: cmrchs | last post by:
Hi, I'm having problems with the interpretation of roles in the <authentication> entries in web.config Scenario : I'm logging on as 'Administrator' and try to access a site for which the...
7
by: RC | last post by:
Dear Dudes, I post this in multiple groups for opening brain storm. Sometime I need to query the data from database server then display them into user's browser in HTML <table>. But if the...
2
by: gndzkdr | last post by:
hi all, i m new on Sql and i have a project related to C# and Sql. i have to do a project which must work on LAN, and there must be only one database file on main computer(Server Computer) and...
1
by: reeferz | last post by:
hi all, i created the most basic webservice the one that vs 2005 creates for u with the hello world method, and decided to post it onto my website.... however i keep getting this error : ...
1
by: inungh | last post by:
I tried to place a grid view on my design view and connect to new data source to local SQL Express server Northwind database. I got error message on line 80 <authentication mode="Windows"/> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.