CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 How to Setup More Than One Login Page

Print topic Send  topic

Author Message
afrausto

Posts: 66
Posted: 10/13/2005, 1:11 PM

Hello,

I have two pages each containing a slightly modified application and I want to restrict access for each page. I have the following security groups: Admin, Applicant1, and Applicant2. I also have a login page that I only want to use for the admin area which is setup under Project Settings | Security. The reason for this is that I need to create separate login page (s) for the application (record form) pages where each has it's own opening content and info.

Anyways, is there a way to do this without CCS redirecting them to the login page specified under Project Settings | Security | Login Page but to their respective login pages?

Any help is greatly appreciated.

Albert
View profile  Send private message
peterr


Posts: 5971
Posted: 10/13/2005, 4:49 PM

I didn't fully understand your situation, but here are couple ideas:

Each CCS page has the "Access Denied Page" property where you can specify the login page that you want to use in each case.

Alternatively, you can create an empty Login page that doesn't do anything else except redirecting users to other login pages based on user's security, for example.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
afrausto

Posts: 66
Posted: 10/14/2005, 10:34 AM

Hello peterr,

Thanks for your response. I apologize for the incomplete description of my dilemma. To begin, I did try your first suggestion but that did not work as I hoped, because if someone were to go directly to the protected application page they would automatically be redirected to the Login Page specified under Project Settings | Security. I would like to bypass that redirection for these particular application pages.

As for your second suggestion that would not be acceptable for our client.

Let me see if I can explain myself more clearly.

In this CCS project, I have set up Security under Project Settings as follows:

Security Tab
Login Page: admin/login.asp
...

Security Groups Tab
Group ID / Group Name
5 / Administrator
1 / Applicant1
2 / Applicant2

I have two application pages called:

application_1.asp and
application_2.asp.

I only want to allow Group Name: Applicant1 to access application_1.asp and Group Name: Applicant2 to access application_2.asp.

As well I would like to have separate login pages appear for each of these applications. Let's call them login_application1.asp and login_application2.asp

My dilemma is that because I've established my Login Page as admin/login.asp anyone visiting application_1.asp and application_2.asp is automatically redirected to that login page. Is there a way override that so that they go to different login pages?

Thanks again for your help
Albert

View profile  Send private message
peterr


Posts: 5971
Posted: 10/14/2005, 10:57 AM

Albert,

Well, the only purpose of the "Access Denied Page" property is to do exactly that - redirect users to the specified page instead of using the global Login page specified in Project Settings | Security. In your case you'd only need to specify one "Access Denied Page" for application_1.asp and a different one for application_2.asp.
Are you saying that there is no difference in page behavior whether you specify "Access Denied Page" or leave it blank? In such case you may be doing somethng wrong, or there may be a technical problem with generating the code. I'd recommend testing this property in more detail because it's designed specifically to handle what you described. Possibly you could create a new blank page and see if the property works there. If it does then something might be wrong with the existing pages where the same property doesn't work. At this point it's just difficult to determine why that property doesn't work for you.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.