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.

issue with cookies and logging into the control panel

July 12, 2012 12:07pm

Subscribe [8]
  • #16 / Sep 24, 2012 11:12am

    Dan Decker

    7338 posts

    Hi dallasthiele,

    Would we be able to login to this for a closer look?

    Be on the lookout for an email from EllisLab.

    Cheers,

  • #17 / Oct 17, 2012 2:57pm

    Jon Horton

    38 posts

    I am also experiencing the same issue: We recently installed MSM, users will attempt to login to the control panel (who don’t have access to Site 2), but the control panel will refresh without logging them in.  Clearing the cache fixes this problem.

    I’m using EE 2.5.1 and MSM 2.1.3

    Help please!

  • #18 / Oct 18, 2012 2:37pm

    Dan Decker

    7338 posts

    Hi Jon,

    Thanks for coming to us for help!

    MSM relies on a few things being just so, or it gets persnickety.

    Are you using one Control Panel for login, or does each site have its own?

    Have you made sure to be consistent with sub-domain usage throughout all sites?

    For a quick referece, make sure your set up mimic this example, where appropriate:

    //CONFIG//
    $config['cp_url'] = "http://engine.dev/admin.php";
    $config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
    $config['is_system_on'] = "y";
    $config['allow_extensions'] = "y";
    $config['site_label'] = "My Awesome Site";
    $config['cookie_prefix'] = "";
    $config['multiple_sites_enabled'] = "y";
    
    index.php and admin.php site 1
    NO CHANGES
    
    index.php and admin.php site 2
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';
    $assign_to_config['site_url'] = 'http://msm.dev';
    
    --- admin ---
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';

    Cheers,

  • #19 / Oct 29, 2012 11:48pm

    benbeilharz

    51 posts

    I’m having this issue with 2.5.3 as well.

  • #20 / Oct 31, 2012 11:49am

    Shane Eckert

    7174 posts

    Hello beilz,

    Have you tried the solutions listed above?

    Can you tell me about your cookie settings and your setup?

    Thank you,

  • #21 / Nov 04, 2012 5:20pm

    benbeilharz

    51 posts

    Hi Shane,

    I haven’t had any problems for the last few days so I might be ok - if it starts happening again I’ll get back to you.

    thanks
    Ben

  • #22 / Nov 05, 2012 9:02am

    Jon Horton

    38 posts

    Just wanted to chime back in and give an update.

    I finally got this working, and what I had to do was manually set the cooke domain for each site through the control panel under Admin > Security & Privacy > Cookie Settings.

    Site 1 Cookie Domain: .site1.com
    Site 2 Cookie Domain: .site2.com

    I wasn’t able to do this from the config file as it set the same cookie domain for both sites, causing it to break.

    This fixes the login loop, but now if I’m logged into site1.com, I’m not auto logged in to site2.com.
    Is this possible?

    Thanks!

  • #23 / Nov 06, 2012 2:05pm

    Shane Eckert

    7174 posts

    Hey Jon Horton,

    Thank you for the update. Appreciate that.

    I believe that this is expected and I am not sure how you would autologin to the second site. They are two different cookies at this point.

    Is there anything else I can help with?

    Cheers,

  • #24 / Nov 06, 2012 7:17pm

    Jon Horton

    38 posts

    Thanks for clarifying that Shane.  That wraps up all of my questions for now!

  • #25 / Nov 07, 2012 3:41pm

    Shane Eckert

    7174 posts

    Hey Jon,

    No problem!

    Have a great rest of the week.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases