Two different loginURLs in <authentication>

  • Thread starter Thread starter Gawel
  • Start date Start date
G

Gawel

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
 
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.
 
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
 
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
 
Shan said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top