Forms Authentication and CMSDesk/Sitemanager Issue

Kelly Shepard asked on May 5, 2016 18:06

Until now, we have had 2 websites (one Kentico instance) under www.domainA.com. In my web.config file, Kentico has (I added the domain part):

We now have a new website in Kentico that has a different domain name (lets say domainB.com). When I go to www.domainB.com/cmsdesk and get redirected to login...fill in my credentials and hit submit, the page just refreshes with the login fields empty. It is my assumption that is has something to do with the entry in my config file for domainA.

What is the best approach to make it so that I can login to domainB cmsdesk without having to remove the domainA for web.config? How does Kentico work when there are many domains within one instance of Kentico and a domain must be specified in web.config?

Thanks, Kelly

Recent Answers


Trevor Fayas answered on May 5, 2016 19:50 (last edited on May 5, 2016 19:51)

You shouldn't really have anything in your web.config concerning domain. In Kentico you just use your "Sites" to add a new site, and as long as IIS allows the domain and you have a license it works.

Can you paste what domain-specific web.config key you placed?

To answer your 2nd question, IIS (if it has multiple bindings to the same Kentico Site) will send a request to the kentico instance with the domain (IIS tells Kentico "there's a request for you for www.domainB.com")

Kentico looks at the Sites it has defined in the Sites Module, and if it finds a Site with that domain (or domain alias) it says "Oh, i have that site, let me give you the content."

0 votesVote for this answer Mark as a Correct answer

Kelly Shepard answered on May 5, 2016 19:57

<authentication mode="Forms">
  <forms loginUrl="CMSPages/logon.aspx" defaultUrl="Default.aspx" name=".ASPXFORMSAUTH" timeout="60000" slidingExpiration="true" domain="domainA.com"   />
</authentication>

When I go to domainB.com/cmsdesk and try to login, the page just refreshes.
0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 6, 2016 16:58

Remove the domain from the forms tag. You don't need it. Kentico will handle what you need without that.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.