Last post Feb 06, 2015 10:29 PM by cnranasinghe
Feb 06, 2015 02:33 PM|luis_lopez_estada|LINK
I have a requirement like, developed an ASP.net web application. I want to host this application for different companies with seperate database, but website shall be hosted only one copy in IIS. so, based on user login, the application should connect
different database server.
A user can access to the application according to its credentials: user, pwd and company. The issue is that if the user enters since Mexico, it has the enviroment from Mexico but if a users enters from Brazil, both enviroments are from Brazil and viceversa.
How can i do if there are many users working simultaneously but
each one must access to the database and enviroment only from its country
Feb 06, 2015 04:30 PM|PatriceSc|LINK
If I understood the question, it could be done by using multiple web addresses for a single web site that is you could have mexico.software.com and brazil.sotfware.com and based on this url you can then select the corresponding database.
Not sure but depending on how many companies you have, the site is liekly duplicated even if files are duplicated. It allows to dploy updates progressively or to stop a particular company if needed or deploy a quick fix if needed etc...
Else you have no other choice than to always be at the same level for each company which chould get much less flexible.
Feb 06, 2015 10:29 PM|cnranasinghe|LINK
You need to check the IP where the request originated. Check this
Once you allowed you can set the desired culture depend on login. Following would help