473,395 Members | 2,253 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,395 software developers and data experts.

ASPNET2.0 Membership Multiple login redirections

Hi All,

I can successfully specify access levels to folders and files with no
problem through web.config.
In my application I have 2 folders off root:
/Admin/
/Members/

When a person tries to go to /Admin/default.aspx they should get
redirected to /Admin/login.aspx
Similarly, when a person tries to go to /Members/default.aspx they
should get redirected to /Members/login.aspx

As it stands, I can only specify one login page for the application,
which is currenly set to /Admin/login.aspx.
So currently if the unlogged in user tries to go to /Members/
default.aspx they end up redirected to /Admin/login.aspx.

Naturally I COULD have just one login page and redirect the user
depending on role. But I'd like to solve the above problem first.

Can this be done in web.config with all the other authentication
settings?

Cheers,
Steven

Apr 3 '07 #1
3 1343
On Apr 3, 6:45 am, "Steven Nagy" <learndot...@hotmail.comwrote:
As it stands, I can only specify one login page for the application,
Steven, you can create an application (a virtual directory) for the /
Members
I think this is the only way

Apr 3 '07 #2
you can create an application (a virtual directory) for the /
Members
Hi,

That's a nice answer. I hadn't thought of it but it makes sense.
The only problem is that in shared hosting environments you don't
always have control over that stuff.

I suppose I can restructure but I would have thought this something
that would be required by a few people, not just me.
Surely its not that uncommon?

Thanks for your answer,
Steven
Apr 3 '07 #3
On Apr 3, 11:45 pm, "Steven Nagy" <learndot...@hotmail.comwrote:
you can create an application (a virtual directory) for the /
Members

Hi,

That's a nice answer. I hadn't thought of it but it makes sense.
The only problem is that in shared hosting environments you don't
always have control over that stuff.

I suppose I can restructure but I would have thought this something
that would be required by a few people, not just me.
Surely its not that uncommon?

Thanks for your answer,
Steven
You can either use a role-based security (the standard way), or two
virtual directories, or you may also implement a custom authentication
against your database.

For custom authentication you would need a datasource and a webform

Here is a very basic example using a flat XML
http://aspalliance.com/505_CodeSnip_...st_an_XML_File

Apr 3 '07 #4

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

Similar topics

1
by: Roel Korsten | last post by:
Hello, We're about to develop an ASP.NET 2.0 application. We're investigating all the new stuff in ASP.NET 2.0 and how to use it. There are 2 important specs for the app: 1. App has to have...
3
by: ad | last post by:
I have create a custom membership provider. The common usage of custom membership is set it as default Membership Provider win web.config, and use login controls with it. How can I use custom...
9
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
5
by: timdennis30 | last post by:
I am wondering how create a security framework for all our web application. Is it possible to create a single forms authenication (cookieless) setting for multiple web applications and web config...
2
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership...
6
by: Scatir | last post by:
Hi, I have a membership problem I couldn't resolve. I have set up membership as most of tutorial instructed, and I am able to log on, but cannot stay log on for some reason. ex: when I log on, the...
0
by: Jay Pondy | last post by:
I added a Company field to the aspNet_Users table and then followed along with the MSDN docs on How to Implement a Custom Membership User by creating my inherited class from the...
0
by: asnowfall | last post by:
I am using 'System.Web.Security.Membership' & 'System.Web.UI.WebControls.Login' control to implement Forms based authentication. Can I call Membership.ValidateUser() from Login.OnAuthenticate()?...
3
by: dm3281 | last post by:
Hello -- I need to write an ASP.NET 2.0 application for our clients to use to login and verify file transmissions. Each client will need their own logon, in addition to a way to assign each...
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: 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
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
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
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,...

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.