• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Passing User ID and Password to another IIS Box

I have a website that acts as the company extranet as well as a portal for our users to access their employee information. When clicking on the Employees link they are required to put in their network user name and password. Once authenticated they can browse their employee information. There is a link they can click on once logged in that will take them to their OWA, but OWA is on the Exchange server on another box. When the user clicks on that link they are required to put in their user name and password again.

Is there a way around that? Can I configure the IIS boxes to share the user name and password? Both boxes are in the same domain and are located on the same subnet and all that. Users would like to be able to log in once while inside the firewall and using a computer outside the network, like their laptop or home machine.

1 Solution

you need to think about http protocol to understand why that happens.  every request from a web server is essentially an independent interaction between the given client and the server.  the only way that a server even knows that a request is part of an active 'session' (i.e. the user has previously logged in to access content) is by setting a cookie in the client browser, then the client sends that cookie with each subsequent request to the server.

that cookie, of course, is only ever valid on that server, and is effectively non-transferrable (in fact irrelevant) on any other server.

therefore, any logged-in session on the web site has no relevance to the OWA server.

there are work-arounds, of course, that involve shared access to session information between multipke web servers in a central data store, and then use of a 'token' in the url to reference the relevant session.

these schemes, however, are generally proprietry to teh specific web application, and I don't think that OWA supports such a scheme.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now