Single Sign On Not Working




I am working on an app for a charity, They need
an online shop and forums. To that effect, I have set up the following
subdomains (starter kit used in brackets): ( starter kit) ( starter kit)

For testing purposes, I am using the default membership and
role providers, but for the profile providers, I am using
dashCommerce's and yetanotherforum's profile providers.

I each web.config, I have set the machineKey to be the same, and have
given each web app the exact same authentication, membership and role
sections, as follows:

<machineKey validationKey='...??...' decryptionKey='...!!...'
<authentication mode="Forms">
<forms name=".theApp_Authentication" loginUrl="http://" protection="All" timeout="30"
<roleManager enabled="true">
<add name="AspNetSqlRoleProvider" connectionStringName="myConn"
applicationName="theApp" type="System.Web.Security.SqlRoleProvider"/>
<membership defaultProvider="AspNetSqlMembershipProvider"
userIsOnlineTimeWindow="15" hashAlgorithmType="">
<add connectionStringName="myConn" applicationName="theApp"
enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="true" requiresUniqueEmail="false"
passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10" passwordStrengthRegularExpression=""
minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

The result is that single sign on does not work. Can anyone tell me
what I am doing wrong??

I thought that by setting the machineKey that each app would read the
cookies created by the other ones, and therefore perform the login.

One point, that may be relevant:

Although the <forms loginUrl="..."> is set to the same url
(, and
dashCommerce pretty much hard code their own login pages. The only
problem with this would be if one subdomain cannot read a cookie
created by another subdomain, as opposed to the main

I must be missing/misunderstanding something. But what...?!



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question