Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Closed Points: 250 Time: 11:05 - Dec 05, 2007  

dankonsoer

Creating a logon for for two sets of people

I work at a school where students and parents can check on the grades progress. There are unfortunately two separate applications, but I want one logon form. What I was hoping to do was to create two radio buttons, one for parents and one for students, and depending on which one is selected, when you hit submit, it takes you there.

Is this possible?

Thank you for any help you can give me.

Categories

Answer Discussion
Tutorials

 

rcastagna

Date:: Dec 06, 2007

Time:: 13:43

dankonsoer,

Yes, this is very possible...and surprisingly easy if the receiving applications are able to process login information that is "passed" to them.

Basically the architecture looks like this:

Common login page (html) with a textbox for username and password, two radio buttons to select role (student or parent) and a login button.

The code behind for this page will be (pseudo code)
Page_Load(object sender, eventargs e)
{
 if (IsPostback)
{
if (radParent.checked) Server.Transfer(path to parents application);
else Server.Transfer(path to students application);
}
}

Once you get to the applications, you can handle the passed values, authenticate the user based on that information and then, if it passes, present the appropriate application.

Do you have access to the source code of both of these applications? If so, you will need to create a page for each that will take the information (either out of the QueryString or with ServerTransfer from the common login, process the submitted information.

If you don't have access to the source code it's going to be a bit more difficult, you will probably have to contact the vendor(s) to see if or how they support a "single sign-on" type of scenario.

If you have any questions, please don't hesitate to ask. Also, if you need a consultant on this project, my contact details are in my profile.

Take care,
Ric

andrew

Date:: Mar 03, 2008

Time:: 18:42

Another way to solve this problem would be just to give the user a different view after she logged on, depending on whether she was a student or a parent. Is there a reason you can't do it this way? You would basically submit the login credentials to a script that would verify them, then check the type of user and forward them to the appropriate application. Does that make sense?

admin

Date:: Mar 04, 2009

Time:: 10:02

The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.

The Quomon Team

admin

Date:: Mar 12, 2009

Time:: 14:20

The question has been closed.

The Quomon Team

Question Answered

This question has been closed, and points have been rewarded to the following experts:


rcastagna: 175
andrew: 75

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es