Jump to content

How to redirect users to a certain login form based on thier username.


unrealindeed

Recommended Posts

Hi All,

 

Im a newbie, so please...be gentle :-)

 

OK, so I have a small, prob easy to answer question.

 

I have a 4 clients that login to 4 different servers. Instead of creating 4 different html pages with 4 forms with 4 individual actions eg:

 

https://server1.mydomain.com/obs/user/logon.do

https://server2.mydomain.com/obs/user/logon.do

https://server3.mydomain.com/obs/user/logon.do

https://server4.mydomain.com/obs/user/logon.do

 

I have created 1 frameset & I would like to write a piece of code that will redirect a user to the correct server page based on their username.

 

If (username = joe)

{login to https://server1.mydomain.com/obs/user/logon.do }

 

elseif (username = pat)

{login to https://server2.mydomain.com/obs/user/logon.do }

 

If (username = mat)

{login to https://server3.mydomain.com/obs/user/logon.do }

 

elseif (username = ben)

{login to https://server4.mydomain.com/obs/user/logon.do }

 

 

 

Once logged in the topFrame will show our logo, but the MainFrame will login to the corresponding server, I have the frameset and all built I just need a hand with the code...I have nothing!

 

 

Any help or if you know of any such scripts would be greatly appreciated.

 

Unreal

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.