ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Logging into MSM sites

December 15, 2011 5:39pm

Subscribe [3]
  • #1 / Dec 15, 2011 5:39pm

    Billy Patel

    284 posts

    I have a msm site with 12 sites.

    If i login to site1.mysite.com CP, make content changes then logout.
    Then if i login to site2.mysite.com , i can see from the breadcrumb that I am still looking at site1.mysite.com.
    How do i force the CP to load the site that relates to the url I am logging in from?

  • #2 / Dec 18, 2011 8:01am

    Sean C. Smith

    3818 posts

    Hi Bohboh,

    In your admin.php, for each site, around line 42/43 have you uncommented the following and replaced with the correct information?

    // $assign_to_config[‘site_name’]  = ‘domain2_short_name’;
    // $assign_to_config[‘cp_url’] = ‘http://domain2.com/admin.php’;

    Sean

  • #3 / Dec 18, 2011 2:12pm

    Billy Patel

    284 posts

    That was already done.
    I wonder if i should be setting something in each sites cookie settings?

  • #4 / Dec 21, 2011 12:54am

    Kevin Smith

    4784 posts

    Bohboh,

    Make sure that you’re not setting those variables with the PHP comments still intact. In other words, rather than this:

    // $assign_to_config['site_name']  = 'domain2_short_name';
    // $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';

    make sure it looks like this:

    $assign_to_config['site_name']  = 'domain2_short_name';
    $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';

    Notice the lack of // prepending the lines?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases