I have a website with many companies, want to include the companyno like this Account/Login/{CompanyNo}. So that on login browse, based on the company number, will change the logo on the login screen.
What I have tried:
Have modified the AccountController to handle this functionality. On successful login i am setting a session variable that is holding the company number. When user clicks on Log Out button, i will take value from session and redirect to Account/Login/{CompanyNo} again.
But when the application is running , if i modify and save web.config file, the site is redirecting back to Account/Login rather than Account/Login/{CompanyNo}. How to force the redirection at this point as i need? Looking for some suggestions on this