i have to create an application in which two servers are two be connected.consider an example of login page in which all the details of login page are store in server1 and i have to store the data in another server i.e server2.....the main thing is thet both servers are in different locations.
your scenario is simple. It happens when keep static contrents on web servers and secured or business components on app servers where data is processed by app server. In your case you can achieve it through virtual directry mapping or including rthe login page data from server 1. Client application or user should always talk to server2 and you post data should go to server2.