如何在多个服务器上托管的一个应用程序中启用单个登录

问题描述:

我有asp.net应用程序,我们将它放在带有负载平衡服务器的几台服务器上,这样我就可以知道当用户登录我的应用程序时负载均衡会将他转发到服务器场上的服务器以及当他发出另一个请求时,服务器可能会将他发送到我们服务器场上有应用程序的另一台服务器上。

问题是第二台服务器应用程序不会验证用户登录第一个服务器应用程序



所以我的问题是如何使服务器应用程序识别用户已经登录



步骤描述:



1-用户向我们的申请提出请求

2-请求将去负载均衡服务器

3-负载均衡将它转发到服务器号1,用户将登录并使用该应用程序

4-来自用户的另一个请求来到负载平衡(可能是他点击了tton或类似的任何东西)

5 - 负载平衡可能会将他转发到农场中具有应用程序的另一台服务器

6-应用程序将询问用户再次登录,因为他不知道他登录了另一台服务器:-( :- :( - (: - /



所以现在问题

如何让第二台服务器知道该用户已经登录????

i have asp.net application and we attend to place it on several servers with load balance server so i
the problem that when the user log in to my application the load balance will forward him to a server on the farm and the when he make another request may the server send him to another server on our farm that have the application on it
the problem is that the second server application will not verify that the user is log in in the first server application

so my question how to make the servers application identify that the user is already logged in

description on steps :

1- the user make request to our application
2- request will go the load balance server
3- load balance will forward it to server number 1 and the user will log in there and play with the application
4- another request from the user come to the load balance (may be he click on button or any thing like this )
5-the load balance maybe will forward him to another server in the farm that have the application
6- the application will ask the user to log in again because he did not know that he logged in on another server :-( :-( :-( :-(

so now the problem
how to make the second server know that this user is already logged in ????

你可以在app上创建一个单一的登录将询问用户名和密码并验证用户是否进入。登录后,您应该列出用户有权访问的所有应用程序。当用户尝试访问该应用程序时。您应该在内部识别他的密码并登录该应用程序。不对该应用程序进行任何更改。
You can create a single sign on app which will ask username and password and verify the user to get in . And after log on you should list down the all the application which user has access to .when user tries to reach that app. You should internally identify his password and get logged in that app. without making any changes to that app.