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

Multiple logon pages?

We have 2 secure areas in our site, one for employees and one for managers.

If our web.config is set up like so:

<authentication mode="Forms">
<forms name="staffing"
loginUrl="/employee/EELogin.aspx"
timeout="400"
protection="All"
path="/" />
</authentication>

Both employee and managers get the same logon page when entering any pages
in the site.

Is there a way to set it up so that there are 2 logon pages one in the
employee folder and one in the manager folder?

Thanks,

Tom
Nov 19 '05 #1
3 913
Well, you can. But each folder would have to be configured as its own
virtual directory. Then in the web.config of each folder you would have
to set the loginURL as you did. Please note that these applications
would be isolated and would not be able to share state that come with
asp.net out of the box.
-HTH

Nov 19 '05 #2
"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Well, you can. But each folder would have to be configured as its own
virtual directory. Then in the web.config of each folder you would have
to set the loginURL as you did. Please note that these applications
would be isolated and would not be able to share state that come with
asp.net out of the box.
I figured that.

That would mean that we are running 2 applications.

I was hoping we could just do it internally, such as using a setting in
Web.Config in the separate folders to say override the setting from the
Web.Config from the root folder. Similar to the way we use location to
specify which pages to ignore for the login page.

Thanks,

Tom -HTH

Nov 19 '05 #3
the <authentication> element is an application level setting meaning
that it can only be applied to Web Applications / Virtual Directories.
If you put that element in a web.config file that is located inside in
a folder this is not configured as an application then you will get an
exception.

Nov 19 '05 #4

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

Similar topics

4
by: john | last post by:
How do u guys handle multiple sessions?? i.e, opening different browser windows by running iexplore.exe or clicking IE icons and opening the application. My sessions are mixing up. what i mean is...
2
by: Sean | last post by:
I have an ASP.NET web application that needs to be rolled out to a number of clients. The functionality is the same in all applications, but each client has its own database. At the moment, I...
2
by: Shashi | last post by:
My development environment is ASP.Net 1.1. When the user does multiple logins to the system and navigates to different screens and clicks back button sometimes it reading the session variables...
3
by: Gary K | last post by:
After a bit a trouble getting VS to create a project on a different web server (I forgot to apply the 'fix'), I get the following error when trying to debug my web application. Error while...
1
by: Larry Page | last post by:
What started off as a request for a Single Sign On solution is grown to the point where I need to make some long term design decisions and I'm hoping to get some input on how others are handling...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
11
by: xenophon | last post by:
I have a web site with forms authentication and a single logon page. I have 4 subdirectories, each that should be protected by a different username/password combination. For testing purposes, the...
1
by: Randall Parker | last post by:
1) What sorts of scenarios make the possibility of sniffing out a password a higher risk? 2) Do packets travel unencrypted over 802.11 wireless? Is it easy to sniff such packets and catch a...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.