Hi all,
I posted a thread but was unable to find the answer to my question. I realized that I posted it in the wrong topic so Im going to repost here.
I have a web application that uses two different authentication mechanisms. On is regular asp.net membership/roles/profiles, and the other is an outside data store that will only authenticate the user.
I have my project broken down with folders and each folder has its own web.config file that determines which users can access that area of the website. It looks like the following:
ROOT
web.config
-----Folder1
-----web.config (only allows users from asp.net membership/roles authentication)
-----Folder 2
-----web.config (allows all users)
----------Sub-Folder2
----------web.config ( denys only unauthenticated users)
Login.aspx
Now what I am trying to accomplish is to have 2 separate login pages. I want the regular Login.aspx to handle all regular requests, but when a user is within Folder 2, and tries to access sub-Folder 2, I want that user to be redirected to a DIFFERENT login page... lets say Folder 2/Login.aspx. The reason for this is because users in Folder 2 will be authenticating through a custom control and an outside data store.
The problem is that whenever users try to access at this point, they automatically get redirected to the root Login.aspx page and I have tried everything from setting both authentication controls within a multiview control, to manual response.redirect to try to get the second group of users to a different page for authentication.
A friend told me something about being able to add a <location> tag into my ROOT web.config that would allow me to specify which Login.aspx page is to be used for each folder. But he also said that it had something to do with creating a virtual directory on the webserver and I don't know what he's talking about.
I would appreciate ANY and ALL insight that you can give me. My project is almost finished, but this is holding me up
There are more of us than you think.